GRANT syntax for SHOWDDL output incorrect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Trafodion |
Fix Committed
|
High
|
Roberta Marton |
Bug Description
There are several issues related to SHOWDDL of functions.
If SHOWDDL function <name> is performed and authorization is not enabled, then the operations should succeed, instead the following error is reported:
showddl function translateBitmap;
*** ERROR[4082] Object TRAFODION.
If SHOWDDL function <name> is performed then the GRANT output is incorrect:
the keyword FUNCTION is needed before the function name.
CREATE FUNCTION TRAFODION.
(
IN BITMAP LARGEINT
)
RETURNS
(
OUT BITMAP_STRING CHAR(20) CHARACTER SET ISO88591
)
. . .
SAFE EXECUTION MODE
;
-- GRANT EXECUTE ON TRAFODION.
GRANT EXECUTE ON TRAFODION.
If a privilege is granted to PUBLIC, then the GRANT statement is incorrect, PUBLIC should be enclosed in double quotes:
CREATE FUNCTION TRAFODION.
(
IN BITMAP LARGEINT
)
RETURNS
(
OUT BITMAP_STRING CHAR(20) CHARACTER SET ISO88591
)
. . .
SAFE EXECUTION MODE
;
-- GRANT EXECUTE ON TRAFODION.
GRANT EXECUTE ON TRAFODION.
GRANT
EXECUTE ON TRAFODION.
Changed in trafodion: | |
importance: | Undecided → High |
assignee: | nobody → Roberta Marton (roberta-marton) |
milestone: | none → r2.0 |
tags: | added: sql-security |
Changed in trafodion: | |
status: | New → In Progress |
Fixed the OBJECT_PRIVILEGES error returned
But public does not need to be enclosed in double quotes. The code handles this name correctly.