]> 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:05 +0000 (05:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 21 Nov 2009 05:44:05 +0000 (05:44 +0000)
commite6c63bf6604f2fb3b17c15e0652686a92f8b8a77
tree123750f47937984d22b759c83df4cb6ac6a47798
parent7fc0f06221d22632daa3ff8b70919b43e8a242ca
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