Fix plpgsql to not treat INSERT INTO as an INTO-variables clause anywhere

Tom Lane <tgl@sss.pgh.pa.us>

Commit: c401a5ce585d99e5533844bb616074e693cc77cf
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-02-02T20:25:38Z
Releases: 8.4.0
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.)

Files

PathChange+/−
src/pl/plpgsql/src/gram.y modified +23 −21