Commit e6f02c82 authored by Bruce Momjian's avatar Bruce Momjian

REVOKE ALL ON FUNCTION nonexistant() FROM PUBLIC;

Used to report that GRANT could not find function nonexistant.

Rod Taylor
parent 8f211f8a
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* See acl.h. * See acl.h.
...@@ -389,7 +389,8 @@ ExecuteGrantStmt_Function(GrantStmt *stmt) ...@@ -389,7 +389,8 @@ ExecuteGrantStmt_Function(GrantStmt *stmt)
char replaces[Natts_pg_proc]; char replaces[Natts_pg_proc];
oid = LookupFuncNameTypeNames(func->funcname, func->funcargs, oid = LookupFuncNameTypeNames(func->funcname, func->funcargs,
true, "GRANT"); true, stmt->is_grant ? "GRANT" : "REVOKE");
relation = heap_openr(ProcedureRelationName, RowExclusiveLock); relation = heap_openr(ProcedureRelationName, RowExclusiveLock);
tuple = SearchSysCache(PROCOID, tuple = SearchSysCache(PROCOID,
ObjectIdGetDatum(oid), ObjectIdGetDatum(oid),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment