1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
|
%{
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Copyright (C) 2011 Brian Aker
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <cstring>
#ifndef DRIZZLED_NON_SQL_RESERVED_WORDS_H
#define DRIZZLED_NON_SQL_RESERVED_WORDS_H
/* This file includes all SQL:2003 reserved words */
namespace drizzled {
namespace sql {
enum keyword_t {
A,
ABSOLUTE,
ACTION,
ADA,
ADD,
ADMIN,
AFTER,
ALWAYS,
ASC,
ASSERTION,
ASSIGNMENT,
ATTRIBUTE,
ATTRIBUTES,
BASE64,
BEFORE,
BERNOULLI,
BREADTH,
C,
CASCADE,
CATALOG,
CATALOG_NAME,
CHAIN,
CHARACTERISTICS,
CHARACTERS,
CHARACTER_SET_CATALOG,
CHARACTER_SET_NAME,
CHARACTER_SET_SCHEMA,
CLASS_ORIGIN,
COBOL,
COLLATION,
COLLATION_CATALOG,
COLLATION_NAME,
COLLATION_SCHEMA,
COLUMN_NAME,
COMMAND_FUNCTION,
COMMAND_FUNCTION_CODE,
COMMITTED,
CONDITION_NUMBER,
CONNECTION,
CONNECTION_NAME,
CONSTRAINTS,
CONSTRAINT_CATALOG,
CONSTRAINT_NAME,
CONSTRAINT_SCHEMA,
CONSTRUCTOR,
CONTAINS,
CONTENT,
CONTINUE,
CURSOR_NAME,
DATA,
DATETIME_INTERVAL_CODE,
DATETIME_INTERVAL_PRECISION,
DEFAULTS,
DEFERRABLE,
DEFERRED,
DEFINED,
DEFINER,
DEGREE,
DEPTH,
DERIVED,
DESC,
DESCRIPTOR,
DIAGNOSTICS,
DISPATCH,
DOCUMENT,
DOMAIN,
DYNAMIC_FUNCTION,
DYNAMIC_FUNCTION_CODE,
EQUALS,
EXCEPTION,
EXCLUDE,
EXCLUDING,
FINAL,
FIRST,
FOLLOWING,
FORTRAN,
FOUND,
G,
GENERAL,
GENERATED,
GO,
GOTO,
GRANTED,
HEX,
HIERARCHY,
IMMEDIATE,
IMPLEMENTATION,
INCLUDING,
INCREMENT,
INITIALLY,
INPUT,
INSTANCE,
INSTANTIABLE,
INVOKER,
ISOLATION,
K,
KEY,
KEY_MEMBER,
KEY_TYPE,
LAST,
LENGTH,
LEVEL,
LOCATOR,
M,
MAP,
MATCHED,
MAXVALUE,
MESSAGE_LENGTH,
MESSAGE_OCTET_LENGTH,
MESSAGE_TEXT,
MINVALUE,
MORE,
MUMPS,
NAME,
NAMES,
NESTING,
NEXT,
NORMALIZED,
NULLABLE,
NULLS,
NUMBER,
OBJECT,
OCTETS,
OPTION,
OPTIONS,
ORDERING,
ORDINALITY,
OTHERS,
OUTPUT,
OVERRIDING,
PAD,
PARAMETER_MODE,
PARAMETER_NAME,
PARAMETER_ORDINAL_POSITION,
PARAMETER_SPECIFIC_CATALOG,
PARAMETER_SPECIFIC_NAME,
PARAMETER_SPECIFIC_SCHEMA,
PARTIAL,
PASCAL,
PATH,
PLACING,
PLI,
PRECEDING,
PRESERVE,
PRIOR,
PRIVILEGES,
PUBLIC,
READ,
RELATIVE,
REPEATABLE,
RESTART,
RESTRICT,
RETURNED_CARDINALITY,
RETURNED_LENGTH,
RETURNED_OCTET_LENGTH,
RETURNED_SQLSTATE,
ROLE,
ROUTINE,
ROUTINE_CATALOG,
ROUTINE_NAME,
ROUTINE_SCHEMA,
ROW_COUNT,
SCALE,
SCHEMA,
SCHEMA_NAME,
SCOPE_CATALOG,
SCOPE_NAME,
SCOPE_SCHEMA,
SECTION,
SECURITY,
SELF,
SEQUENCE,
SERIALIZABLE,
SERVER_NAME,
SESSION,
SETS,
SIMPLE,
SIZE,
SOURCE,
SPACE,
SPECIFIC_NAME,
STANDALONE,
STATE,
STATEMENT,
STRIP,
STRUCTURE,
STYLE,
SUBCLASS_ORIGIN,
TABLE_NAME,
TEMPORARY,
TIES,
TOP_LEVEL_COUNT,
TRANSACTION,
TRANSACTIONS_COMMITTED,
TRANSACTIONS_ROLLED_BACK,
TRANSACTION_ACTIVE,
TRANSFORM,
TRANSFORMS,
TRIGGER_CATALOG,
TRIGGER_NAME,
TRIGGER_SCHEMA,
TYPE,
UNBOUNDED,
UNCOMMITTED,
UNDER,
UNNAMED,
USAGE,
USER_DEFINED_TYPE_CATALOG,
USER_DEFINED_TYPE_CODE,
USER_DEFINED_TYPE_NAME,
USER_DEFINED_TYPE_SCHEMA,
VERSION,
VIEW,
WHITESPACE,
WORK,
WRITE,
ZONE
};
} // namespace sql
} // namespace drizzled
using namespace drizzled;
struct keyword_st
{
const char* name;
sql::keyword_t code;
};
%}
struct keyword_st
{
const char* name;
sql::keyword_t code;
};
%%
A, A
ABSOLUTE, ABSOLUTE
ACTION, ACTION
ADA, ADA
ADD, ADD
ADMIN, ADMIN
AFTER, AFTER
ALWAYS, ALWAYS
ASC, ASC
ASSERTION, ASSERTION
ASSIGNMENT, ASSIGNMENT
ATTRIBUTE, ATTRIBUTE
ATTRIBUTES, ATTRIBUTES
BASE64, BASE64
BEFORE, BEFORE
BERNOULLI, BERNOULLI
BREADTH, BREADTH
C, C
CASCADE, CASCADE
CATALOG, CATALOG
CATALOG_NAME, CATALOG_NAME
CHAIN, CHAIN
CHARACTERISTICS, CHARACTERISTICS
CHARACTERS, CHARACTERS
CHARACTER_SET_CATALOG, CHARACTER_SET_CATALOG
CHARACTER_SET_NAME, CHARACTER_SET_NAME
CHARACTER_SET_SCHEMA, CHARACTER_SET_SCHEMA
CLASS_ORIGIN, CLASS_ORIGIN
COBOL, COBOL
COLLATION, COLLATION
COLLATION_CATALOG, COLLATION_CATALOG
COLLATION_NAME, COLLATION_NAME
COLLATION_SCHEMA, COLLATION_SCHEMA
COLUMN_NAME, COLUMN_NAME
COMMAND_FUNCTION, COMMAND_FUNCTION
COMMAND_FUNCTION_CODE, COMMAND_FUNCTION_CODE
COMMITTED, COMMITTED
CONDITION_NUMBER, CONDITION_NUMBER
CONNECTION, CONNECTION
CONNECTION_NAME, CONNECTION_NAME
CONSTRAINTS, CONSTRAINTS
CONSTRAINT_CATALOG, CONSTRAINT_CATALOG
CONSTRAINT_NAME, CONSTRAINT_NAME
CONSTRAINT_SCHEMA, CONSTRAINT_SCHEMA
CONSTRUCTOR, CONSTRUCTOR
CONTAINS, CONTAINS
CONTENT, CONTENT
CONTINUE, CONTINUE
CURSOR_NAME, CURSOR_NAME
DATA, DATA
DATETIME_INTERVAL_CODE, DATETIME_INTERVAL_CODE
DATETIME_INTERVAL_PRECISION, DATETIME_INTERVAL_PRECISION
DEFAULTS, DEFAULTS
DEFERRABLE, DEFERRABLE
DEFERRED, DEFERRED
DEFINED, DEFINED
DEFINER, DEFINER
DEGREE, DEGREE
DEPTH, DEPTH
DERIVED, DERIVED
DESC, DESC
DESCRIPTOR, DESCRIPTOR
DIAGNOSTICS, DIAGNOSTICS
DISPATCH, DISPATCH
DOCUMENT, DOCUMENT
DOMAIN, DOMAIN
DYNAMIC_FUNCTION, DYNAMIC_FUNCTION
DYNAMIC_FUNCTION_CODE, DYNAMIC_FUNCTION_CODE
EQUALS, EQUALS
EXCEPTION, EXCEPTION
EXCLUDE, EXCLUDE
EXCLUDING, EXCLUDING
FINAL, FINAL
FIRST, FIRST
FOLLOWING, FOLLOWING
FORTRAN, FORTRAN
FOUND, FOUND
G, G
GENERAL, GENERAL
GENERATED, GENERATED
GO, GO
GOTO, GOTO
GRANTED, GRANTED
HEX, HEX
HIERARCHY, HIERARCHY
IMMEDIATE, IMMEDIATE
IMPLEMENTATION, IMPLEMENTATION
INCLUDING, INCLUDING
INCREMENT, INCREMENT
INITIALLY, INITIALLY
INPUT, INPUT
INSTANCE, INSTANCE
INSTANTIABLE, INSTANTIABLE
INVOKER, INVOKER
ISOLATION, ISOLATION
K, K
KEY, KEY
KEY_MEMBER, KEY_MEMBER
KEY_TYPE, KEY_TYPE
LAST, LAST
LENGTH, LENGTH
LEVEL, LEVEL
LOCATOR, LOCATOR
M, M
MAP, MAP
MATCHED, MATCHED
MAXVALUE, MAXVALUE
MESSAGE_LENGTH, MESSAGE_LENGTH
MESSAGE_OCTET_LENGTH, MESSAGE_OCTET_LENGTH
MESSAGE_TEXT, MESSAGE_TEXT
MINVALUE, MINVALUE
MORE, MORE
MUMPS, MUMPS
NAME, NAME
NAMES, NAMES
NESTING, NESTING
NEXT, NEXT
NORMALIZED, NORMALIZED
NULLABLE, NULLABLE
NULLS, NULLS
NUMBER, NUMBER
OBJECT, OBJECT
OCTETS, OCTETS
OPTION, OPTION
OPTIONS, OPTIONS
ORDERING, ORDERING
ORDINALITY, ORDINALITY
OTHERS, OTHERS
OUTPUT, OUTPUT
OVERRIDING, OVERRIDING
PAD, PAD
PARAMETER_MODE, PARAMETER_MODE
PARAMETER_NAME, PARAMETER_NAME
PARAMETER_ORDINAL_POSITION, PARAMETER_ORDINAL_POSITION
PARAMETER_SPECIFIC_CATALOG, PARAMETER_SPECIFIC_CATALOG
PARAMETER_SPECIFIC_NAME, PARAMETER_SPECIFIC_NAME
PARAMETER_SPECIFIC_SCHEMA, PARAMETER_SPECIFIC_SCHEMA
PARTIAL, PARTIAL
PASCAL, PASCAL
PATH, PATH
PLACING, PLACING
PLI, PLI
PRECEDING, PRECEDING
PRESERVE, PRESERVE
PRIOR, PRIOR
PRIVILEGES, PRIVILEGES
PUBLIC, PUBLIC
READ, READ
RELATIVE, RELATIVE
REPEATABLE, REPEATABLE
RESTART, RESTART
RESTRICT, RESTRICT
RETURNED_CARDINALITY, RETURNED_CARDINALITY
RETURNED_LENGTH, RETURNED_LENGTH
RETURNED_OCTET_LENGTH, RETURNED_OCTET_LENGTH
RETURNED_SQLSTATE, RETURNED_SQLSTATE
ROLE, ROLE
ROUTINE, ROUTINE
ROUTINE_CATALOG, ROUTINE_CATALOG
ROUTINE_NAME, ROUTINE_NAME
ROUTINE_SCHEMA, ROUTINE_SCHEMA
ROW_COUNT, ROW_COUNT
SCALE, SCALE
SCHEMA, SCHEMA
SCHEMA_NAME, SCHEMA_NAME
SCOPE_CATALOG, SCOPE_CATALOG
SCOPE_NAME, SCOPE_NAME
SCOPE_SCHEMA, SCOPE_SCHEMA
SECTION, SECTION
SECURITY, SECURITY
SELF, SELF
SEQUENCE, SEQUENCE
SERIALIZABLE, SERIALIZABLE
SERVER_NAME, SERVER_NAME
SESSION, SESSION
SETS, SETS
SIMPLE, SIMPLE
SIZE, SIZE
SOURCE, SOURCE
SPACE, SPACE
SPECIFIC_NAME, SPECIFIC_NAME
STANDALONE, STANDALONE
STATE, STATE
STATEMENT, STATEMENT
STRIP, STRIP
STRUCTURE, STRUCTURE
STYLE, STYLE
SUBCLASS_ORIGIN, SUBCLASS_ORIGIN
TABLE_NAME, TABLE_NAME
TEMPORARY, TEMPORARY
TIES, TIES
TOP_LEVEL_COUNT, TOP_LEVEL_COUNT
TRANSACTION, TRANSACTION
TRANSACTIONS_COMMITTED, TRANSACTIONS_COMMITTED
TRANSACTIONS_ROLLED_BACK, TRANSACTIONS_ROLLED_BACK
TRANSACTION_ACTIVE, TRANSACTION_ACTIVE
TRANSFORM, TRANSFORM
TRANSFORMS, TRANSFORMS
TRIGGER_CATALOG, TRIGGER_CATALOG
TRIGGER_NAME, TRIGGER_NAME
TRIGGER_SCHEMA, TRIGGER_SCHEMA
TYPE, TYPE
UNBOUNDED, UNBOUNDED
UNCOMMITTED, UNCOMMITTED
UNDER, UNDER
UNNAMED, UNNAMED
USAGE, USAGE
USER_DEFINED_TYPE_CATALOG, USER_DEFINED_TYPE_CATALOG
USER_DEFINED_TYPE_CODE, USER_DEFINED_TYPE_CODE
USER_DEFINED_TYPE_NAME, USER_DEFINED_TYPE_NAME
USER_DEFINED_TYPE_SCHEMA, USER_DEFINED_TYPE_SCHEMA
VERSION, VERSION
VIEW, VIEW
WHITESPACE, WHITESPACE
WORK, WORK
WRITE, WRITE
ZONE, ZONE
%%
#endif /* DRIZZLED_NON_SQL_RESERVED_WORDS_H */
|