Subject | GRANT question |
---|---|
Author | Ivan Prenosil |
Post date | 2001-02-19T22:48:02Z |
Suppose I have procedure P1 that calls procedure P2,
procedure P2 calls itself recursively.
Public has granted Execute rights on procedure P1,
procedure P1 has granted Execute rights on procedure P2.
The question is - do I need to
GRANT Exectue ON PROCEDURE P2 TO PROCEDURE P2 ?
I can imagine these answers:
- NO, because procedure should always be able to call itself
- NO, because P2 is called "in the context" of P1 that has required right
- YES, (this is correct answer for InterBase)
Any opinions ? Does SQL standard have anything to say about it ?
Ivan
prenosil@...
procedure P2 calls itself recursively.
Public has granted Execute rights on procedure P1,
procedure P1 has granted Execute rights on procedure P2.
The question is - do I need to
GRANT Exectue ON PROCEDURE P2 TO PROCEDURE P2 ?
I can imagine these answers:
- NO, because procedure should always be able to call itself
- NO, because P2 is called "in the context" of P1 that has required right
- YES, (this is correct answer for InterBase)
Any opinions ? Does SQL standard have anything to say about it ?
Ivan
prenosil@...