]> granicus.if.org Git - postgresql/commit
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:45:12 +0000 (20:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 20 Jun 2005 20:45:12 +0000 (20:45 +0000)
commit224501ed68f912981295cc8c1dfecd3d175c9db5
treeca3187eee067116de67ce1b3e5d219574c914c5c
parent2b91c8cf007e1008f7d6ccc9813908d30af8b4c0
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