]> granicus.if.org Git - postgresql/commit
Fix plpgsql's exec_move_row() to supply valid type OIDs to exec_assign_value()
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Sep 2008 22:30:33 +0000 (22:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Sep 2008 22:30:33 +0000 (22:30 +0000)
commitdd6edd5efd042f7aaaccb7606fb5f477c9dc9888
tree126b64d5087ecec74902d355d3b0797bb22592d0
parent76c39cf3be2d815cd8351f8226c7f0391d8ff29a
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.
src/pl/plpgsql/src/pl_exec.c