aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/functioncmds.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2005-01-27 23:24:11 +0000
committerNeil Conway <neilc@samurai.com>2005-01-27 23:24:11 +0000
commita885ecd6efc28b57b8079ae865a6a09035d1fc3d (patch)
tree8c1a1dcd62a1c842823a839b721f689cf65ccf6d /src/backend/commands/functioncmds.c
parent728775d781a1e18899240d099461dff163456225 (diff)
downloadpostgresql-a885ecd6efc28b57b8079ae865a6a09035d1fc3d.tar.gz
postgresql-a885ecd6efc28b57b8079ae865a6a09035d1fc3d.zip
Change heap_modifytuple() to require a TupleDesc rather than a
Relation. Patch from Alvaro Herrera, minor editorializing by Neil Conway.
Diffstat (limited to 'src/backend/commands/functioncmds.c')
-rw-r--r--src/backend/commands/functioncmds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/functioncmds.c b/src/backend/commands/functioncmds.c
index eb32ee48bae..414b23cd870 100644
--- a/src/backend/commands/functioncmds.c
+++ b/src/backend/commands/functioncmds.c
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.53 2004/12/31 21:59:41 pgsql Exp $
+ * $PostgreSQL: pgsql/src/backend/commands/functioncmds.c,v 1.54 2005/01/27 23:23:55 neilc Exp $
*
* DESCRIPTION
* These routines take the parse tree and pick out the
@@ -793,7 +793,7 @@ AlterFunctionOwner(List *name, List *argtypes, AclId newOwnerSysId)
repl_val[Anum_pg_proc_proacl - 1] = PointerGetDatum(newAcl);
}
- newtuple = heap_modifytuple(tup, rel, repl_val, repl_null, repl_repl);
+ newtuple = heap_modifytuple(tup, RelationGetDescr(rel), repl_val, repl_null, repl_repl);
simple_heap_update(rel, &newtuple->t_self, newtuple);
CatalogUpdateIndexes(rel, newtuple);