plpgsql's exec_assign_value() freed the old value of a variable before
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jun 2005 20:44:57 +0000 (20:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jun 2005 20:44:57 +0000 (20:44 +0000)
commit9cc36b2d0b31e51d553027705edd8574c51c1e32
tree1df7182361e93c7abee89df84e2033e7e20c3e4d
parente7125459a0f387cf6b4698206070d205c3b7c7cf
plpgsql's exec_assign_value() freed the old value of a variable before
copying/converting the new value, which meant that it failed badly on
"var := var" if var is of pass-by-reference type.  Fix this and a similar
hazard in exec_move_row(); not sure that the latter can manifest before
8.0, but patch it all the way back anyway.  Per report from Dave Chapeskie.
src/pl/plpgsql/src/pl_exec.c