1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

Change heap_modifytuple() to require a TupleDesc rather than a

Relation. Patch from Alvaro Herrera, minor editorializing by
Neil Conway.
This commit is contained in:
Neil Conway
2005-01-27 23:24:11 +00:00
parent 728775d781
commit a885ecd6ef
18 changed files with 54 additions and 60 deletions

View File

@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.100 2005/01/10 20:02:21 tgl Exp $
* $PostgreSQL: pgsql/src/backend/rewrite/rewriteDefine.c,v 1.101 2005/01/27 23:24:05 neilc Exp $
*
*-------------------------------------------------------------------------
*/
@ -114,7 +114,7 @@ InsertRule(char *rulname,
replaces[Anum_pg_rewrite_ev_qual - 1] = 'r';
replaces[Anum_pg_rewrite_ev_action - 1] = 'r';
tup = heap_modifytuple(oldtup, pg_rewrite_desc,
tup = heap_modifytuple(oldtup, RelationGetDescr(pg_rewrite_desc),
values, nulls, replaces);
simple_heap_update(pg_rewrite_desc, &tup->t_self, tup);