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)
commitec2b30dc96a352553aa6e5f8e8fd3abe2f0866df
treeb8c26dfdaf9f2721d14954e9a61fb6d4e96e1207
parent596a47badb61e38c47640ff457970c0d222306fc
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