Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Feb 2009 20:25:43 +0000 (20:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Feb 2009 20:25:43 +0000 (20:25 +0000)
commiteb56fa9373fb7413a875cab4194fee1eae363407
tree83485b22c61bb1c4cd4dde5aa895b862a56afd50
parent152a8870a07ecfc88365b072804a8fef412e4117
Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere
in the string, not just at the start.  Per bug #4629 from Martin Blazek.

Back-patch to 8.2; prior versions don't have the problem, at least not in
the reported case, because they don't try to recognize INTO in non-SELECT
statements.  (IOW, this is really fallout from the RETURNING patch.)
src/pl/plpgsql/src/gram.y