]> granicus.if.org Git - postgresql/commitdiff
Add new keywords SNAPSHOT and TYPES to the keyword list in gram.y
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 9 Feb 2012 09:37:54 +0000 (11:37 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 9 Feb 2012 09:37:54 +0000 (11:37 +0200)
These were added to kwlist.h as unreserved keywords in separate patches,
but authors forgot to add them to the corresponding list in gram.y.
Because of that, even though they were supposed to be unreserved keywords,
they could not be used as identifiers. src/tools/check_keywords.pl is your
friend.

src/backend/parser/gram.y

index 62fde67bd942276829baca7c86d1921ce2ed8b6a..ac4b4635b94bc61f9f8e784a564e63ebd690f56e 100644 (file)
@@ -12302,6 +12302,7 @@ unreserved_keyword:
                        | SHARE
                        | SHOW
                        | SIMPLE
+                       | SNAPSHOT
                        | STABLE
                        | STANDALONE_P
                        | START
@@ -12325,6 +12326,7 @@ unreserved_keyword:
                        | TRUNCATE
                        | TRUSTED
                        | TYPE_P
+                       | TYPES_P
                        | UNBOUNDED
                        | UNCOMMITTED
                        | UNENCRYPTED