pgsql: Improve plpgsql parsing to report "foo is not a known variable",

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve plpgsql parsing to report "foo is not a known variable",
Date: 2010-01-10 17:56:50
Message-ID: 20100110175650.207F87541B9@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Improve plpgsql parsing to report "foo is not a known variable", rather than a
generic syntax error, when seeing "foo := something" and foo isn't recognized.
This buys back most of the helpfulness discarded in my previous patch by not
throwing errors when a qualified name appears to match a row variable but the
last component doesn't match any field of the row. It covers other cases
where our error messages left something to be desired, too.

Modified Files:
--------------
pgsql/src/pl/plpgsql/src:
gram.y (r1.138 -> r1.139)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/pl/plpgsql/src/gram.y?r1=1.138&r2=1.139)

Browse pgsql-committers by date

  From Date Subject
Next Message David Fetter 2010-01-10 17:58:00 Re: pgsql: Also update ChangerLog file.
Previous Message Tom Lane 2010-01-10 17:15:18 pgsql: Improve plpgsql's handling of record field references by forcing