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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix plpgsql to not treat INSERT INTO as an INTO-variables clause
Date: 2009-02-02 20:25:38
Message-ID: 20090202202538.7CE0F7559ED@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.)

Modified Files:
--------------
pgsql/src/pl/plpgsql/src:
gram.y (r1.119 -> r1.120)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/gram.y?r1=1.119&r2=1.120)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2009-02-02 20:25:44 pgsql: Fix plpgsql to not treat INSERT INTO as an INTO-variables clause
Previous Message Andrew Dunstan 2009-02-02 20:07:37 pgsql: Provide for parallel restoration from a custom format archive.