postgresql/src
Tom Lane fe24d78161 Improve plpgsql's error reporting for no-such-column cases.
Given a column reference foo.bar, where there is a composite plpgsql
variable foo but it doesn't contain a column bar, the pre-9.0 coding would
immediately throw a "record foo has no field bar" error.  In 9.0 the parser
hook instead falls through to let the core parser see if it can resolve the
reference.  If not, you get a complaint about "missing FROM-clause entry
for table foo", which while in some sense correct isn't terribly helpful.
Complicate things a bit so that we can throw the old error message if
neither the core parser nor the hook are able to resolve the column
reference, while not changing the behavior in any other case.
Per bug #5757 from Andrey Galkin.
2010-11-18 17:07:15 -05:00
..
backend Add pg_describe_object function 2010-11-18 17:06:19 -03:00
bin Cleanup various comparisons with the constant "true". 2010-11-14 21:03:48 -05:00
include Add pg_describe_object function 2010-11-18 17:06:19 -03:00
interfaces Additional fixes for parallel make 2010-11-17 08:08:41 +02:00
makefiles Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
pl Improve plpgsql's error reporting for no-such-column cases. 2010-11-18 17:07:15 -05:00
port Fix comparisons of pointers with zero to compare with NULL instead. 2010-10-29 15:51:52 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Make TRUNCATE ... RESTART IDENTITY restart sequences transactionally. 2010-11-17 16:42:18 -05:00
timezone Improved parallel make support 2010-11-12 22:15:16 +02:00
tools Attempt to fix MSVC builds broken by parallel make changes. 2010-11-12 22:55:15 -05:00
tutorial Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Additional fixes for parallel make 2010-11-17 08:08:41 +02:00
Makefile.global.in Adjust comments about what's needed to avoid make 3.80 bug. 2010-11-15 01:00:48 -05:00
Makefile.shlib Improved parallel make support 2010-11-12 22:15:16 +02:00
bcc32.mak Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00