]> granicus.if.org Git - postgresql/commit
Refactor ecpg grammar so that it uses the core grammar's unreserved_keyword
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Nov 2009 05:44:12 +0000 (05:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Nov 2009 05:44:12 +0000 (05:44 +0000)
commit1e925f49e7e885dbf3df81e275144b1e285acef6
tree424368a8477f8e509e87ccc4e42194e52d4b9734
parent00d144ddabfe9ac04a7c5da83cbfe61b7c7786b0
Refactor ecpg grammar so that it uses the core grammar's unreserved_keyword
list, minus a few specific words that have to be treated specially.  This
replaces a hard-wired list of keywords that would have needed manual
maintenance, and was not getting it.  The 8.4 coding was already missing
these words, causing ecpg to incorrectly treat them as reserved words:
CALLED, CATALOG, DEFINER, ENUM, FOLLOWING, INVOKER, OPTIONS, PARTITION,
PRECEDING, RANGE, SECURITY, SERVER, UNBOUNDED, WRAPPER.  In HEAD we were
additionally missing COMMENTS, FUNCTIONS, SEQUENCES, TABLES.
Per gripe from Bosco Rama.
src/interfaces/ecpg/preproc/ecpg.trailer
src/interfaces/ecpg/preproc/ecpg.type
src/interfaces/ecpg/preproc/parse.pl