7
7
*
8
8
*
9
9
* IDENTIFICATION
10
- * $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.12 1997/08/22 14:33:21 vadim Exp $
10
+ * $Header: /cvsroot/pgsql/src/backend/parser/keywords.c,v 1.13 1997/09/01 05:53:31 thomas Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -35,7 +35,7 @@ static ScanKeyword ScanKeywords[] = {
35
35
{ "acl" , ACL },
36
36
{ "add" , ADD },
37
37
{ "after" , AFTER },
38
- { "aggregate" , AGGREGATE },
38
+ { "aggregate" , AGGREGATE },
39
39
{ "all" , ALL },
40
40
{ "alter" , ALTER },
41
41
{ "analyze" , ANALYZE },
@@ -44,13 +44,14 @@ static ScanKeyword ScanKeywords[] = {
44
44
{ "archIve" , ARCHIVE }, /* XXX crooked: I < _ */
45
45
{ "arch_store" , ARCH_STORE },
46
46
{ "archive" , ARCHIVE }, /* XXX crooked: i > _ */
47
- { "as" , AS },
48
- { "asc" , ASC },
47
+ { "as" , AS },
48
+ { "asc" , ASC },
49
49
{ "backward" , BACKWARD },
50
50
{ "before" , BEFORE },
51
51
{ "begin" , BEGIN_TRANS },
52
52
{ "between" , BETWEEN },
53
53
{ "binary" , BINARY },
54
+ { "both" , BOTH },
54
55
{ "by" , BY },
55
56
{ "cast" , CAST },
56
57
{ "change" , CHANGE },
@@ -62,70 +63,89 @@ static ScanKeyword ScanKeywords[] = {
62
63
{ "constraint" , CONSTRAINT },
63
64
{ "copy" , COPY },
64
65
{ "create" , CREATE },
66
+ { "cross" , CROSS },
65
67
{ "current" , CURRENT },
66
68
{ "cursor" , CURSOR },
67
69
{ "database" , DATABASE },
70
+ { "day" , DAYINTERVAL },
68
71
{ "declare" , DECLARE },
69
72
{ "default" , DEFAULT },
70
73
{ "delete" , DELETE },
71
- { "delimiters" , DELIMITERS },
74
+ { "delimiters" , DELIMITERS },
72
75
{ "desc" , DESC },
73
76
{ "distinct" , DISTINCT },
74
77
{ "do" , DO },
75
78
{ "drop" , DROP },
76
79
{ "end" , END_TRANS },
77
80
{ "execute" , EXECUTE },
81
+ { "exists" , EXISTS },
78
82
{ "explain" , EXPLAIN },
79
83
{ "extend" , EXTEND },
84
+ { "extract" , EXTRACT },
80
85
{ "fetch" , FETCH },
81
86
{ "for" , FOR },
82
87
{ "forward" , FORWARD },
83
88
{ "from" , FROM },
89
+ { "full" , FULL },
84
90
{ "function" , FUNCTION },
85
- { "grant" , GRANT },
91
+ { "grant" , GRANT },
86
92
{ "group" , GROUP },
87
93
{ "having" , HAVING },
88
94
{ "heavy" , HEAVY },
95
+ { "hour" , HOURINTERVAL },
89
96
{ "in" , IN },
90
97
{ "index" , INDEX },
91
98
{ "inherits" , INHERITS },
99
+ { "inner" , INNERJOIN },
92
100
{ "insert" , INSERT },
93
101
{ "instead" , INSTEAD },
102
+ { "interval" , INTERVAL },
94
103
{ "into" , INTO },
95
104
{ "is" , IS },
96
- { "isnull" , ISNULL },
105
+ { "isnull" , ISNULL },
106
+ { "join" , JOIN },
97
107
{ "language" , LANGUAGE },
108
+ { "leading" , LEADING },
109
+ { "left" , LEFT },
98
110
{ "light" , LIGHT },
99
111
{ "like" , LIKE },
100
- { "listen" , LISTEN },
101
- { "load" , LOAD },
112
+ { "listen" , LISTEN },
113
+ { "load" , LOAD },
114
+ { "local" , LOCAL },
102
115
{ "merge" , MERGE },
116
+ { "minute" , MINUTEINTERVAL },
117
+ { "month" , MONTHINTERVAL },
103
118
{ "move" , MOVE },
119
+ { "natural" , NATURAL },
104
120
{ "new" , NEW },
105
121
{ "none" , NONE },
106
122
{ "not" , NOT },
107
- { "nothing" , NOTHING },
108
- { "notify" , NOTIFY },
109
- { "notnull" , NOTNULL },
123
+ { "nothing" , NOTHING },
124
+ { "notify" , NOTIFY },
125
+ { "notnull" , NOTNULL },
110
126
{ "null" , PNULL },
111
127
{ "oids" , OIDS },
112
128
{ "on" , ON },
113
129
{ "operator" , OPERATOR },
114
- { "option" , OPTION },
130
+ { "option" , OPTION },
115
131
{ "or" , OR },
116
132
{ "order" , ORDER },
117
- { "privileges" , PRIVILEGES },
118
- { "public" , PUBLIC },
133
+ { "outer" , OUTERJOIN },
134
+ { "position" , POSITION },
135
+ { "privileges" , PRIVILEGES },
136
+ { "public" , PUBLIC },
119
137
{ "purge" , PURGE },
120
- { "recipe" , RECIPE },
138
+ { "recipe" , RECIPE },
121
139
{ "rename" , RENAME },
122
140
{ "replace" , REPLACE },
123
141
{ "reset" , RESET },
124
142
{ "retrieve" , RETRIEVE },
125
143
{ "returns" , RETURNS },
126
- { "revoke" , REVOKE },
144
+ { "revoke" , REVOKE },
145
+ { "right" , RIGHT },
127
146
{ "rollback" , ROLLBACK },
128
147
{ "rule" , RULE },
148
+ { "second" , SECONDINTERVAL },
129
149
{ "select" , SELECT },
130
150
{ "sequence" , SEQUENCE },
131
151
{ "set" , SET },
@@ -134,11 +154,16 @@ static ScanKeyword ScanKeywords[] = {
134
154
{ "stdin" , STDIN },
135
155
{ "stdout" , STDOUT },
136
156
{ "store" , STORE },
157
+ { "substring" , SUBSTRING },
137
158
{ "table" , TABLE },
159
+ { "time" , TIME },
138
160
{ "to" , TO },
139
161
{ "transaction" , TRANSACTION },
162
+ { "trailing" , TRAILING },
163
+ { "trim" , TRIM },
140
164
{ "type" , P_TYPE },
141
- { "unique" , UNIQUE },
165
+ { "union" , UNION },
166
+ { "unique" , UNIQUE },
142
167
{ "update" , UPDATE },
143
168
{ "using" , USING },
144
169
{ "vacuum" , VACUUM },
@@ -149,6 +174,8 @@ static ScanKeyword ScanKeywords[] = {
149
174
{ "where" , WHERE },
150
175
{ "with" , WITH },
151
176
{ "work" , WORK },
177
+ { "year" , YEARINTERVAL },
178
+ { "zone" , ZONE },
152
179
};
153
180
154
181
ScanKeyword *
0 commit comments