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:
@ -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);
|
||||
|
Reference in New Issue
Block a user