]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere REL8_3_6
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)
commit09406122347f04025b03bab3daa248a9004c1e4b
treec9ea319b16f1320d797bdfa60c73a1d0c2e744fe
parentb1abb3340b02d77227d9419f424ef936d7cde1d8
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