pgsql: Fix markTargetListOrigin() to not fail on a simple-Var reference

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix markTargetListOrigin() to not fail on a simple-Var reference
Date: 2008-10-05 22:20:17
Message-ID: 20081005222017.156EE7545A4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Fix markTargetListOrigin() to not fail on a simple-Var reference to a
recursive CTE that we're still in progress of analyzing. Add a similar guard
to the similar code in expandRecordVariable(), and tweak regression tests to
cover this case. Per report from Dickson S. Guedes.

Modified Files:
--------------
pgsql/src/backend/parser:
parse_target.c (r1.165 -> r1.166)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/parser/parse_target.c?r1=1.165&r2=1.166)
pgsql/src/test/regress/expected:
with.out (r1.1 -> r1.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/expected/with.out?r1=1.1&r2=1.2)
pgsql/src/test/regress/sql:
with.sql (r1.1 -> r1.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/test/regress/sql/with.sql?r1=1.1&r2=1.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-10-05 22:50:55 pgsql: Improve behavior of WITH RECURSIVE with an untyped literal in the
Previous Message Peter Eisentraut 2008-10-05 18:56:09 pgsql: Remove some unportable tests