postgresql/src
Tom Lane 4879a5172a Support plpgsql variable names that conflict with unreserved SQL keywords.
A variable name matching a statement-introducing keyword, such as
"comment" or "update", caused parse failures if one tried to write
a statement using that keyword.  Commit bb1b8f69 already addressed
this scenario for the case of variable names matching unreserved
plpgsql keywords, but we didn't think about unreserved core-grammar
keywords.  The same heuristic (viz, it can't be a variable name
unless the next token is assignment or '[') should work fine for
that case too, and as a bonus the code gets shorter and less
duplicative.

Per bug #15555 from Feike Steenbergen.  Since this hasn't been
complained of before, and is easily worked around anyway,
I won't risk a back-patch.

Discussion: https://postgr.es/m/15555-149bbd70ddc7b4b6@postgresql.org
2019-01-04 12:16:19 -05:00
..
backend Move the built-in conversions into the initial catalog data. 2019-01-03 19:47:53 -05:00
bin Move the built-in conversions into the initial catalog data. 2019-01-03 19:47:53 -05:00
common Update copyright for 2019 2019-01-02 12:44:25 -05:00
fe_utils Update copyright for 2019 2019-01-02 12:44:25 -05:00
include Move the built-in conversions into the initial catalog data. 2019-01-03 19:47:53 -05:00
interfaces Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
makefiles Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
pl Support plpgsql variable names that conflict with unreserved SQL keywords. 2019-01-04 12:16:19 -05:00
port Update copyright for 2019 2019-01-02 12:44:25 -05:00
template Yet further rethinking of build changes for macOS Mojave. 2018-11-02 18:54:00 -04:00
test Support plpgsql variable names that conflict with unreserved SQL keywords. 2019-01-04 12:16:19 -05:00
timezone Update copyright for 2019 2019-01-02 12:44:25 -05:00
tools Move the built-in conversions into the initial catalog data. 2019-01-03 19:47:53 -05:00
tutorial Update copyright for 2019 2019-01-02 12:44:25 -05: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 Fix partial-build problems introduced by having more generated headers. 2018-04-09 16:42:10 -04:00
Makefile.global.in Ensure link commands list *.o files before LDFLAGS. 2019-01-02 13:57:54 -05:00
Makefile.shlib Ensure static libraries have correct mod time even if ranlib messes it up. 2018-11-29 15:53:44 -05:00
nls-global.mk nls-global.mk: search build dir for source files, too 2016-06-07 18:55:18 -04:00