postgres.git / summary / log / commit / refs
commit 82e73ba0d1f8990a76a20b3a57957e633945fb2b
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Thu Feb 09 09:37:54 2012 +0000
First released in: 9.2.0
Add new keywords SNAPSHOT and TYPES to the keyword list in gram.y
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 | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 62fde67bd94..ac4b4635b94 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -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
[parent: 331bf6712c71]