mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-17 19:30:00 +08:00
REVOKE ALL ON FUNCTION nonexistant() FROM PUBLIC;
Used to report that GRANT could not find function nonexistant. Rod Taylor
This commit is contained in:
parent
8f211f8a84
commit
e6f02c8231
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.69 2002/06/20 20:29:26 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/catalog/aclchk.c,v 1.70 2002/07/18 04:50:10 momjian Exp $
|
||||
*
|
||||
* NOTES
|
||||
* See acl.h.
|
||||
@ -389,7 +389,8 @@ ExecuteGrantStmt_Function(GrantStmt *stmt)
|
||||
char replaces[Natts_pg_proc];
|
||||
|
||||
oid = LookupFuncNameTypeNames(func->funcname, func->funcargs,
|
||||
true, "GRANT");
|
||||
true, stmt->is_grant ? "GRANT" : "REVOKE");
|
||||
|
||||
relation = heap_openr(ProcedureRelationName, RowExclusiveLock);
|
||||
tuple = SearchSysCache(PROCOID,
|
||||
ObjectIdGetDatum(oid),
|
||||
|
Loading…
Reference in New Issue
Block a user