Subject | using GRANT / REVOKE in trigger |
---|---|
Author | Ryan Nilsson-Harding |
Post date | 2002-09-24T02:17:07Z |
Hi there,
It appears I cannot use GRANT or REVOKE in a trigger, but the manual
says that it can be used with SQL, DSQL, and ISQL.
SET TERM ^ ;
CREATE TRIGGER UPD_ROLE
ACTIVE AFTER DELETE POSITION 0
AS BEGIN
REVOKE old.USER_ROLE FROM old.USER_NAME;
END ^
SET TERM ; ^
Any ideas what I might be missing here?
Rgds,
-Ryan
It appears I cannot use GRANT or REVOKE in a trigger, but the manual
says that it can be used with SQL, DSQL, and ISQL.
SET TERM ^ ;
CREATE TRIGGER UPD_ROLE
ACTIVE AFTER DELETE POSITION 0
AS BEGIN
REVOKE old.USER_ROLE FROM old.USER_NAME;
END ^
SET TERM ; ^
Any ideas what I might be missing here?
Rgds,
-Ryan