]> granicus.if.org Git - postgresql/commit
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:50 +0000 (20:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Feb 2009 20:25:50 +0000 (20:25 +0000)
commit96925826100443442677005f91fe86b457d5460b
tree20546fb69b837403e584e99ab80b3838d729ec0a
parente06e3d38103274388a05ee3bcbea584ff9cacb22
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