]> 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:38 +0000 (20:25 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Feb 2009 20:25:38 +0000 (20:25 +0000)
commitc401a5ce585d99e5533844bb616074e693cc77cf
tree121be10253db2d6721f543c6326f125df3aec2b3
parent775f1b379e3a282140f60ef65a11d1444dc80ccf
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