Bug #20704 | CREATE PROCEDURE without correct grant yields incorrect error | ||
---|---|---|---|
Submitted: | 26 Jun 2006 19:17 | Modified: | 6 Aug 2007 15:06 |
Reporter: | Erica Moss | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Errors | Severity: | S3 (Non-critical) |
Version: | 5.1.12-beta-log | OS: | Linux (Fedora core 5) |
Assigned to: | Konstantin Osipov | CPU Architecture: | Any |
[26 Jun 2006 19:17]
Erica Moss
[6 Aug 2007 15:06]
Konstantin Osipov
ER_NONEXISTING_PROC_GRANT is returned in case of a semantic error in REVOKE, when one is trying to revoke grants on a stored routine that were never granted, in similarity with ER_NONEXISTING_GRANT. "Access denied" error, issued in case of insufficient privileges is opaque in consistency with the spirit of the SQL standard, when an insufficient privilege error reveals very little information about data or issued grants. This is consistent with server behavior in case of other objects - tables or views.
[6 Aug 2007 15:06]
Konstantin Osipov
See also: http://dev.mysql.com/doc/refman/5.1/en/grant.html
[6 Aug 2007 15:07]
Konstantin Osipov
And http://dev.mysql.com/doc/refman/5.1/en/access-denied.html
[6 Aug 2007 15:09]
Konstantin Osipov
Eric, I re-read the chapters that I recommended to you, and they are not very explicit. Perhaps documentation could be improved to reflect the above explanation.