Commit b8ffc996 authored by Tom Lane's avatar Tom Lane

Minor kibitzing.

parent d60f10b0
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.74 2002/05/22 17:20:58 petere Exp $ * $Header: /cvsroot/pgsql/src/backend/catalog/pg_proc.c,v 1.75 2002/05/22 18:33:15 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -140,7 +140,6 @@ ProcedureCreate(const char *procedureName, ...@@ -140,7 +140,6 @@ ProcedureCreate(const char *procedureName,
elog(ERROR, "method %s already an attribute of type %s", elog(ERROR, "method %s already an attribute of type %s",
procedureName, format_type_be(typev[0])); procedureName, format_type_be(typev[0]));
/* /*
* All seems OK; prepare the data to be inserted into pg_proc. * All seems OK; prepare the data to be inserted into pg_proc.
*/ */
...@@ -177,7 +176,6 @@ ProcedureCreate(const char *procedureName, ...@@ -177,7 +176,6 @@ ProcedureCreate(const char *procedureName,
CStringGetDatum(probin)); CStringGetDatum(probin));
/* proacl will be handled below */ /* proacl will be handled below */
rel = heap_openr(ProcedureRelationName, RowExclusiveLock); rel = heap_openr(ProcedureRelationName, RowExclusiveLock);
tupDesc = rel->rd_att; tupDesc = rel->rd_att;
...@@ -220,7 +218,8 @@ ProcedureCreate(const char *procedureName, ...@@ -220,7 +218,8 @@ ProcedureCreate(const char *procedureName,
procedureName); procedureName);
} }
/* do not change existing permissions, either */ /* do not change existing ownership or permissions, either */
replaces[Anum_pg_proc_proowner-1] = ' ';
replaces[Anum_pg_proc_proacl-1] = ' '; replaces[Anum_pg_proc_proacl-1] = ' ';
/* Okay, do it... */ /* Okay, do it... */
...@@ -258,9 +257,9 @@ ProcedureCreate(const char *procedureName, ...@@ -258,9 +257,9 @@ ProcedureCreate(const char *procedureName,
/* Verify function body */ /* Verify function body */
if (OidIsValid(languageValidator)) if (OidIsValid(languageValidator))
{ {
/* Advance command counter so recursive functions can be defined */ /* Advance command counter so new tuple can be seen by validator */
CommandCounterIncrement(); CommandCounterIncrement();
OidFunctionCall1(languageValidator, retval); OidFunctionCall1(languageValidator, ObjectIdGetDatum(retval));
} }
return retval; return retval;
......
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