Improve plpgsql parsing to report "foo is not a known variable", rather than a
authorTom Lane <[email protected]>
Sun, 10 Jan 2010 17:56:50 +0000 (17:56 +0000)
committerTom Lane <[email protected]>
Sun, 10 Jan 2010 17:56:50 +0000 (17:56 +0000)
commit7eeb0677378b65805714cd6449cd9a3c3ab3c9ca
treec2b900c430d80ea718dba355afb6227db5f083d2
parent2f6977124cde3677a287d0f4ce5224367bce325b
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.
src/pl/plpgsql/src/gram.y