Skip site navigation (1) Skip section navigation (2)

pgsql: Fix plpgsql's exec_move_row() to supply valid type OIDs to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix plpgsql's exec_move_row() to supply valid type OIDs to
Date: 2008-09-01 22:30:33
Message-ID: 20080901223033.4C3F1755325@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix plpgsql's exec_move_row() to supply valid type OIDs to exec_assign_value()
whenever possible, as per bug report from Oleg Serov.  While at it, reorder
the operations in the RECORD case to avoid possible palloc failure while the
variable update is only partly complete.

Back-patch as far as 8.1.  Although the code of the particular function is
similar in 8.0, 8.0's support for composite fields in rows is sufficiently
broken elsewhere that it doesn't seem worth fixing this.

Modified Files:
--------------
    pgsql/src/pl/plpgsql/src:
        pl_exec.c (r1.218 -> r1.219)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/pl_exec.c?r1=1.218&r2=1.219)

pgsql-committers by date

Next:From: Tom LaneDate: 2008-09-01 22:30:40
Subject: pgsql: Fix plpgsql's exec_move_row() to supply valid type OIDs to
Previous:From: Tom LaneDate: 2008-09-01 21:42:18
Subject: pgsql: Sigh, I missed checking the ecpg tests ...

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group