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)
commitd197633dfe7ef6d2d5c8f158cf94db880755e085
treea113411424c453ed1116f39192071ed4253c239f
parent94ad6891b1203a590722ac4d5f43158de4ceefc8
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