REVOKE ALL ON FUNCTION nonexistant() FROM PUBLIC;

Used to report that GRANT could not find function nonexistant.

Rod Taylor
This commit is contained in:
Bruce Momjian 2002-07-18 04:50:10 +00:00
parent 8f211f8a84
commit e6f02c8231
1 changed files with 3 additions and 2 deletions

View File

@ -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),