33
38
are compiled into the server. Don't add ifdef'ed symbols to the
54
AGGREGATE, AGGREGATE_SYM
62
ASENSITIVE, ASENSITIVE_SYM
64
AUTO_INCREMENT, AUTO_INC
66
AVG_ROW_LENGTH, AVG_ROW_LENGTH
76
BLOCK_SIZE, BLOCK_SIZE_SYM
95
CHECKSUM, CHECKSUM_SYM
99
COLLATION, COLLATION_SYM
104
COMMITTED, COMMITTED_SYM
106
COMPLETION, COMPLETION_SYM
107
COMPRESSED, COMPRESSED_SYM
108
CONCURRENT, CONCURRENT
109
CONDITION, CONDITION_SYM
110
CONNECTION, CONNECTION_SYM
111
CONSISTENT, CONSISTENT_SYM
112
CONSTRAINT, CONSTRAINT
113
CONTAINS, CONTAINS_SYM
115
CONTINUE, CONTINUE_SYM
120
CURRENT_DATE, CURDATE
121
CURRENT_TIMESTAMP, NOW_SYM
122
CURRENT_USER, CURRENT_USER
127
DATAFILE, DATAFILE_SYM
129
DATETIME, DATETIME_SYM
131
DAY_HOUR, DAY_HOUR_SYM
132
DAY_MICROSECOND, DAY_MICROSECOND_SYM
133
DAY_MINUTE, DAY_MINUTE_SYM
134
DAY_SECOND, DAY_SECOND_SYM
135
DEALLOCATE, DEALLOCATE_SYM
143
DETERMINISTIC, DETERMINISTIC_SYM
148
DISTINCTROW, DISTINCT
153
DUPLICATE, DUPLICATE_SYM
167
EXCLUSIVE, EXCLUSIVE_SYM
171
EXTENDED, EXTENDED_SYM
172
EXTENT_SIZE, EXTENT_SIZE_SYM
176
COLUMN_FORMAT, COLUMN_FORMAT_SYM
187
FRAC_SECOND, FRAC_SECOND_SYM
197
HOUR_MICROSECOND, HOUR_MICROSECOND_SYM
198
HOUR_MINUTE, HOUR_MINUTE_SYM
199
HOUR_SECOND, HOUR_SECOND_SYM
200
IDENTIFIED, IDENTIFIED_SYM
210
INSENSITIVE, INSENSITIVE_SYM
212
INSERT_METHOD, INSERT_METHOD
218
INTERVAL, INTERVAL_SYM
226
KEY_BLOCK_SIZE, KEY_BLOCK_SIZE
239
LOCALTIMESTAMP, NOW_SYM
249
MAX_SIZE, MAX_SIZE_SYM
250
MAXVALUE, MAX_VALUE_SYM
255
MICROSECOND, MICROSECOND_SYM
258
MINUTE_MICROSECOND, MINUTE_MICROSECOND_SYM
259
MINUTE_SECOND, MINUTE_SECOND_SYM
263
MODIFIES, MODIFIES_SYM
268
NATIONAL, NATIONAL_SYM
274
NODEGROUP, NODEGROUP_SYM
278
NO_WRITE_TO_BINLOG, NO_WRITE_TO_BINLOG
290
OPTIONALLY, OPTIONALLY
304
PROCESSLIST, PROCESSLIST_SYM
311
READ_ONLY, READ_ONLY_SYM
312
READ_WRITE, READ_WRITE_SYM
317
REDO_BUFFER_SIZE, REDO_BUFFER_SIZE_SYM
318
REDOFILE, REDOFILE_SYM
319
REDUNDANT, REDUNDANT_SYM
320
REFERENCES, REFERENCES
325
REORGANIZE, REORGANIZE_SYM
326
REPEATABLE, REPEATABLE_SYM
328
REPLICATION, REPLICATION
339
ROLLBACK, ROLLBACK_SYM
344
ROW_FORMAT, ROW_FORMAT_SYM
345
SAVEPOINT, SAVEPOINT_SYM
349
SECOND_MICROSECOND, SECOND_MICROSECOND_SYM
350
SECURITY, SECURITY_SYM
352
SENSITIVE, SENSITIVE_SYM
353
SEPARATOR, SEPARATOR_SYM
355
SERIALIZABLE, SERIALIZABLE_SYM
363
SNAPSHOT, SNAPSHOT_SYM
368
SPECIFIC, SPECIFIC_SYM
370
SQLEXCEPTION, SQLEXCEPTION_SYM
371
SQLSTATE, SQLSTATE_SYM
372
SQLWARNING, SQLWARNING_SYM
373
SQL_BIG_RESULT, SQL_BIG_RESULT
374
SQL_BUFFER_RESULT, SQL_BUFFER_RESULT
375
SQL_CALC_FOUND_ROWS, SQL_CALC_FOUND_ROWS
376
SQL_SMALL_RESULT, SQL_SMALL_RESULT
377
SQL_TSI_FRAC_SECOND, FRAC_SECOND_SYM
378
SQL_TSI_SECOND, SECOND_SYM
379
SQL_TSI_MINUTE, MINUTE_SYM
380
SQL_TSI_HOUR, HOUR_SYM
382
SQL_TSI_WEEK, WEEK_SYM
383
SQL_TSI_MONTH, MONTH_SYM
384
SQL_TSI_QUARTER, QUARTER_SYM
385
SQL_TSI_YEAR, YEAR_SYM
393
STRAIGHT_JOIN, STRAIGHT_JOIN
398
SWITCHES, SWITCHES_SYM
401
TABLESPACE, TABLESPACE
402
TEMPORARY, TEMPORARY_SYM
403
TEMPTABLE, TEMPTABLE_SYM
404
TERMINATED, TERMINATED
408
TIMESTAMP, TIMESTAMP_SYM
409
TIMESTAMPADD, TIMESTAMP_ADD
410
TIMESTAMPDIFF, TIMESTAMP_DIFF
415
TRANSACTION, TRANSACTION_SYM
417
TRUNCATE, TRUNCATE_SYM
420
UNCOMMITTED, UNCOMMITTED_SYM
421
UNDEFINED, UNDEFINED_SYM
422
UNDOFILE, UNDOFILE_SYM
433
USER_RESOURCES, RESOURCES
435
UTC_DATE, UTC_DATE_SYM
436
UTC_TIMESTAMP, UTC_TIMESTAMP_SYM
441
VARCHARACTER, VARCHAR_SYM
447
WEIGHT_STRING, WEIGHT_STRING_SYM
455
YEAR_MONTH, YEAR_MONTH_SYM
42
static SYMBOL symbols[] = {
43
{ "&&", SYM(AND_AND_SYM)},
51
{ "<<", SYM(SHIFT_LEFT)},
52
{ ">>", SYM(SHIFT_RIGHT)},
53
{ "<=>", SYM(EQUAL_SYM)},
54
{ "ACCESSIBLE", SYM(ACCESSIBLE_SYM)},
55
{ "ACTION", SYM(ACTION)},
57
{ "AFTER", SYM(AFTER_SYM)},
58
{ "AGGREGATE", SYM(AGGREGATE_SYM)},
60
{ "ALGORITHM", SYM(ALGORITHM_SYM)},
61
{ "ALTER", SYM(ALTER)},
62
{ "ANALYZE", SYM(ANALYZE_SYM)},
63
{ "AND", SYM(AND_SYM)},
64
{ "ANY", SYM(ANY_SYM)},
67
{ "ASCII", SYM(ASCII_SYM)},
68
{ "ASENSITIVE", SYM(ASENSITIVE_SYM)},
70
{ "AUTHORS", SYM(AUTHORS_SYM)},
71
{ "AUTO_INCREMENT", SYM(AUTO_INC)},
72
{ "AUTOEXTEND_SIZE", SYM(AUTOEXTEND_SIZE_SYM)},
73
{ "AVG", SYM(AVG_SYM)},
74
{ "AVG_ROW_LENGTH", SYM(AVG_ROW_LENGTH)},
75
{ "BEFORE", SYM(BEFORE_SYM)},
76
{ "BEGIN", SYM(BEGIN_SYM)},
77
{ "BETWEEN", SYM(BETWEEN_SYM)},
78
{ "BIGINT", SYM(BIGINT)},
79
{ "BINARY", SYM(BINARY)},
80
{ "BINLOG", SYM(BINLOG_SYM)},
81
{ "BIT", SYM(BIT_SYM)},
82
{ "BLOB", SYM(BLOB_SYM)},
83
{ "BLOCK", SYM(BLOCK_SYM)},
84
{ "BOOL", SYM(BOOL_SYM)},
85
{ "BOOLEAN", SYM(BOOLEAN_SYM)},
87
{ "BTREE", SYM(BTREE_SYM)},
89
{ "BYTE", SYM(BYTE_SYM)},
90
{ "CACHE", SYM(CACHE_SYM)},
91
{ "CALL", SYM(CALL_SYM)},
92
{ "CASCADE", SYM(CASCADE)},
93
{ "CASCADED", SYM(CASCADED)},
94
{ "CASE", SYM(CASE_SYM)},
95
{ "CHAIN", SYM(CHAIN_SYM)},
96
{ "CHANGE", SYM(CHANGE)},
97
{ "CHANGED", SYM(CHANGED)},
98
{ "CHAR", SYM(CHAR_SYM)},
99
{ "CHARACTER", SYM(CHAR_SYM)},
100
{ "CHARSET", SYM(CHARSET)},
101
{ "CHECK", SYM(CHECK_SYM)},
102
{ "CHECKSUM", SYM(CHECKSUM_SYM)},
103
{ "CIPHER", SYM(CIPHER_SYM)},
104
{ "CLIENT", SYM(CLIENT_SYM)},
105
{ "CLOSE", SYM(CLOSE_SYM)},
106
{ "COALESCE", SYM(COALESCE)},
107
{ "CODE", SYM(CODE_SYM)},
108
{ "COLLATE", SYM(COLLATE_SYM)},
109
{ "COLLATION", SYM(COLLATION_SYM)},
110
{ "COLUMN", SYM(COLUMN_SYM)},
111
{ "COLUMNS", SYM(COLUMNS)},
112
{ "COMMENT", SYM(COMMENT_SYM)},
113
{ "COMMIT", SYM(COMMIT_SYM)},
114
{ "COMMITTED", SYM(COMMITTED_SYM)},
115
{ "COMPACT", SYM(COMPACT_SYM)},
116
{ "COMPLETION", SYM(COMPLETION_SYM)},
117
{ "COMPRESSED", SYM(COMPRESSED_SYM)},
118
{ "CONCURRENT", SYM(CONCURRENT)},
119
{ "CONDITION", SYM(CONDITION_SYM)},
120
{ "CONNECTION", SYM(CONNECTION_SYM)},
121
{ "CONSISTENT", SYM(CONSISTENT_SYM)},
122
{ "CONSTRAINT", SYM(CONSTRAINT)},
123
{ "CONTAINS", SYM(CONTAINS_SYM)},
124
{ "CONTEXT", SYM(CONTEXT_SYM)},
125
{ "CONTINUE", SYM(CONTINUE_SYM)},
126
{ "CONTRIBUTORS", SYM(CONTRIBUTORS_SYM)},
127
{ "CONVERT", SYM(CONVERT_SYM)},
128
{ "CPU", SYM(CPU_SYM)},
129
{ "CREATE", SYM(CREATE)},
130
{ "CROSS", SYM(CROSS)},
131
{ "CUBE", SYM(CUBE_SYM)},
132
{ "CURRENT_DATE", SYM(CURDATE)},
133
{ "CURRENT_TIME", SYM(CURTIME)},
134
{ "CURRENT_TIMESTAMP", SYM(NOW_SYM)},
135
{ "CURRENT_USER", SYM(CURRENT_USER)},
136
{ "CURSOR", SYM(CURSOR_SYM)},
137
{ "DATA", SYM(DATA_SYM)},
138
{ "DATABASE", SYM(DATABASE)},
139
{ "DATABASES", SYM(DATABASES)},
140
{ "DATAFILE", SYM(DATAFILE_SYM)},
141
{ "DATE", SYM(DATE_SYM)},
142
{ "DATETIME", SYM(DATETIME)},
143
{ "DAY", SYM(DAY_SYM)},
144
{ "DAY_HOUR", SYM(DAY_HOUR_SYM)},
145
{ "DAY_MICROSECOND", SYM(DAY_MICROSECOND_SYM)},
146
{ "DAY_MINUTE", SYM(DAY_MINUTE_SYM)},
147
{ "DAY_SECOND", SYM(DAY_SECOND_SYM)},
148
{ "DEALLOCATE", SYM(DEALLOCATE_SYM)},
149
{ "DEC", SYM(DECIMAL_SYM)},
150
{ "DECIMAL", SYM(DECIMAL_SYM)},
151
{ "DECLARE", SYM(DECLARE_SYM)},
152
{ "DEFAULT", SYM(DEFAULT)},
153
{ "DEFINER", SYM(DEFINER_SYM)},
154
{ "DELAYED", SYM(DELAYED_SYM)},
155
{ "DELAY_KEY_WRITE", SYM(DELAY_KEY_WRITE_SYM)},
156
{ "DELETE", SYM(DELETE_SYM)},
157
{ "DESC", SYM(DESC)},
158
{ "DESCRIBE", SYM(DESCRIBE)},
159
{ "DES_KEY_FILE", SYM(DES_KEY_FILE)},
160
{ "DETERMINISTIC", SYM(DETERMINISTIC_SYM)},
161
{ "DIRECTORY", SYM(DIRECTORY_SYM)},
162
{ "DISABLE", SYM(DISABLE_SYM)},
163
{ "DISCARD", SYM(DISCARD)},
164
{ "DISTINCT", SYM(DISTINCT)},
165
{ "DISTINCTROW", SYM(DISTINCT)}, /* Access likes this */
166
{ "DIV", SYM(DIV_SYM)},
167
{ "DOUBLE", SYM(DOUBLE_SYM)},
168
{ "DROP", SYM(DROP)},
169
{ "DUMPFILE", SYM(DUMPFILE)},
170
{ "DUPLICATE", SYM(DUPLICATE_SYM)},
171
{ "DYNAMIC", SYM(DYNAMIC_SYM)},
172
{ "EACH", SYM(EACH_SYM)},
173
{ "ELSE", SYM(ELSE)},
174
{ "ELSEIF", SYM(ELSEIF_SYM)},
175
{ "ENABLE", SYM(ENABLE_SYM)},
176
{ "ENCLOSED", SYM(ENCLOSED)},
178
{ "ENDS", SYM(ENDS_SYM)},
179
{ "ENGINE", SYM(ENGINE_SYM)},
180
{ "ENGINES", SYM(ENGINES_SYM)},
181
{ "ENUM", SYM(ENUM)},
182
{ "ERRORS", SYM(ERRORS)},
183
{ "ESCAPE", SYM(ESCAPE_SYM)},
184
{ "ESCAPED", SYM(ESCAPED)},
185
{ "EVENTS", SYM(EVENTS_SYM)},
186
{ "EVERY", SYM(EVERY_SYM)},
187
{ "EXCLUSIVE", SYM(EXCLUSIVE_SYM)},
188
{ "EXISTS", SYM(EXISTS)},
189
{ "EXIT", SYM(EXIT_SYM)},
190
{ "EXPLAIN", SYM(DESCRIBE)},
191
{ "EXTENDED", SYM(EXTENDED_SYM)},
192
{ "EXTENT_SIZE", SYM(EXTENT_SIZE_SYM)},
193
{ "FALSE", SYM(FALSE_SYM)},
194
{ "FAST", SYM(FAST_SYM)},
195
{ "FAULTS", SYM(FAULTS_SYM)},
196
{ "FETCH", SYM(FETCH_SYM)},
197
{ "COLUMN_FORMAT", SYM(COLUMN_FORMAT_SYM)},
198
{ "FIELDS", SYM(COLUMNS)},
199
{ "FILE", SYM(FILE_SYM)},
200
{ "FIRST", SYM(FIRST_SYM)},
201
{ "FIXED", SYM(FIXED_SYM)},
202
{ "FLOAT", SYM(DOUBLE_SYM)},
203
{ "FLUSH", SYM(FLUSH_SYM)},
204
{ "FOR", SYM(FOR_SYM)},
205
{ "FORCE", SYM(FORCE_SYM)},
206
{ "FOREIGN", SYM(FOREIGN)},
207
{ "FOUND", SYM(FOUND_SYM)},
208
{ "FRAC_SECOND", SYM(FRAC_SECOND_SYM)},
209
{ "FROM", SYM(FROM)},
210
{ "FULL", SYM(FULL)},
211
{ "GET_FORMAT", SYM(GET_FORMAT)},
212
{ "GLOBAL", SYM(GLOBAL_SYM)},
213
{ "GROUP", SYM(GROUP_SYM)},
214
{ "HANDLER", SYM(HANDLER_SYM)},
215
{ "HASH", SYM(HASH_SYM)},
216
{ "HAVING", SYM(HAVING)},
217
{ "HIGH_PRIORITY", SYM(HIGH_PRIORITY)},
218
{ "HOST", SYM(HOST_SYM)},
219
{ "HOSTS", SYM(HOSTS_SYM)},
220
{ "HOUR", SYM(HOUR_SYM)},
221
{ "HOUR_MICROSECOND", SYM(HOUR_MICROSECOND_SYM)},
222
{ "HOUR_MINUTE", SYM(HOUR_MINUTE_SYM)},
223
{ "HOUR_SECOND", SYM(HOUR_SECOND_SYM)},
224
{ "IDENTIFIED", SYM(IDENTIFIED_SYM)},
226
{ "IGNORE", SYM(IGNORE_SYM)},
227
{ "IMPORT", SYM(IMPORT)},
228
{ "IN", SYM(IN_SYM)},
229
{ "INDEX", SYM(INDEX_SYM)},
230
{ "INDEXES", SYM(INDEXES)},
231
{ "INFILE", SYM(INFILE)},
232
{ "INITIAL_SIZE", SYM(INITIAL_SIZE_SYM)},
233
{ "INNER", SYM(INNER_SYM)},
234
{ "INOUT", SYM(INOUT_SYM)},
235
{ "INSENSITIVE", SYM(INSENSITIVE_SYM)},
236
{ "INSERT", SYM(INSERT)},
237
{ "INSERT_METHOD", SYM(INSERT_METHOD)},
238
{ "INSTALL", SYM(INSTALL_SYM)},
239
{ "INT", SYM(INT_SYM)},
240
{ "INT1", SYM(TINYINT)},
241
{ "INT2", SYM(SMALLINT)},
242
{ "INT4", SYM(INT_SYM)},
243
{ "INT8", SYM(BIGINT)},
244
{ "INTEGER", SYM(INT_SYM)},
245
{ "INTERVAL", SYM(INTERVAL_SYM)},
246
{ "INTO", SYM(INTO)},
247
{ "IO", SYM(IO_SYM)},
248
{ "IO_THREAD", SYM(RELAY_THREAD)},
249
{ "IPC", SYM(IPC_SYM)},
251
{ "ISOLATION", SYM(ISOLATION)},
252
{ "ISSUER", SYM(ISSUER_SYM)},
253
{ "ITERATE", SYM(ITERATE_SYM)},
254
{ "JOIN", SYM(JOIN_SYM)},
255
{ "KEY", SYM(KEY_SYM)},
256
{ "KEYS", SYM(KEYS)},
257
{ "KEY_BLOCK_SIZE", SYM(KEY_BLOCK_SIZE)},
258
{ "KILL", SYM(KILL_SYM)},
259
{ "LAST", SYM(LAST_SYM)},
260
{ "LEADING", SYM(LEADING)},
261
{ "LEAVES", SYM(LEAVES)},
262
{ "LEFT", SYM(LEFT)},
263
{ "LEVEL", SYM(LEVEL_SYM)},
264
{ "LIKE", SYM(LIKE)},
265
{ "LIMIT", SYM(LIMIT)},
266
{ "LINEAR", SYM(LINEAR_SYM)},
267
{ "LIST", SYM(LIST_SYM)},
268
{ "LOAD", SYM(LOAD)},
269
{ "LOCAL", SYM(LOCAL_SYM)},
270
{ "LOCALTIME", SYM(NOW_SYM)},
271
{ "LOCALTIMESTAMP", SYM(NOW_SYM)},
272
{ "LOCK", SYM(LOCK_SYM)},
273
{ "LOCKS", SYM(LOCKS_SYM)},
274
{ "LOGFILE", SYM(LOGFILE_SYM)},
275
{ "LOGS", SYM(LOGS_SYM)},
276
{ "LONG", SYM(LONG_SYM)},
277
{ "LONGBLOB", SYM(BLOB_SYM)},
278
{ "LONGTEXT", SYM(TEXT_SYM)},
279
{ "LOOP", SYM(LOOP_SYM)},
280
{ "LOW_PRIORITY", SYM(LOW_PRIORITY)},
281
{ "MASTER", SYM(MASTER_SYM)},
282
{ "MASTER_CONNECT_RETRY", SYM(MASTER_CONNECT_RETRY_SYM)},
283
{ "MASTER_HOST", SYM(MASTER_HOST_SYM)},
284
{ "MASTER_LOG_FILE", SYM(MASTER_LOG_FILE_SYM)},
285
{ "MASTER_LOG_POS", SYM(MASTER_LOG_POS_SYM)},
286
{ "MASTER_PASSWORD", SYM(MASTER_PASSWORD_SYM)},
287
{ "MASTER_PORT", SYM(MASTER_PORT_SYM)},
288
{ "MASTER_SERVER_ID", SYM(MASTER_SERVER_ID_SYM)},
289
{ "MASTER_USER", SYM(MASTER_USER_SYM)},
290
{ "MASTER_HEARTBEAT_PERIOD", SYM(MASTER_HEARTBEAT_PERIOD_SYM)},
291
{ "MATCH", SYM(MATCH)},
292
{ "MAX_CONNECTIONS_PER_HOUR", SYM(MAX_CONNECTIONS_PER_HOUR)},
293
{ "MAX_QUERIES_PER_HOUR", SYM(MAX_QUERIES_PER_HOUR)},
294
{ "MAX_ROWS", SYM(MAX_ROWS)},
295
{ "MAX_SIZE", SYM(MAX_SIZE_SYM)},
296
{ "MAX_UPDATES_PER_HOUR", SYM(MAX_UPDATES_PER_HOUR)},
297
{ "MAX_USER_CONNECTIONS", SYM(MAX_USER_CONNECTIONS_SYM)},
298
{ "MAXVALUE", SYM(MAX_VALUE_SYM)},
299
{ "MEDIUM", SYM(MEDIUM_SYM)},
300
{ "MEDIUMBLOB", SYM(BLOB_SYM)},
301
{ "MEDIUMTEXT", SYM(TEXT_SYM)},
302
{ "MERGE", SYM(MERGE_SYM)},
303
{ "MICROSECOND", SYM(MICROSECOND_SYM)},
304
{ "MIGRATE", SYM(MIGRATE_SYM)},
305
{ "MINUTE", SYM(MINUTE_SYM)},
306
{ "MINUTE_MICROSECOND", SYM(MINUTE_MICROSECOND_SYM)},
307
{ "MINUTE_SECOND", SYM(MINUTE_SECOND_SYM)},
308
{ "MIN_ROWS", SYM(MIN_ROWS)},
309
{ "MOD", SYM(MOD_SYM)},
310
{ "MODE", SYM(MODE_SYM)},
311
{ "MODIFIES", SYM(MODIFIES_SYM)},
312
{ "MODIFY", SYM(MODIFY_SYM)},
313
{ "MONTH", SYM(MONTH_SYM)},
314
{ "NAME", SYM(NAME_SYM)},
315
{ "NAMES", SYM(NAMES_SYM)},
316
{ "NATIONAL", SYM(NATIONAL_SYM)},
317
{ "NATURAL", SYM(NATURAL)},
318
{ "NCHAR", SYM(NCHAR_SYM)},
319
{ "NEW", SYM(NEW_SYM)},
320
{ "NEXT", SYM(NEXT_SYM)},
321
{ "NO", SYM(NO_SYM)},
322
{ "NO_WAIT", SYM(NO_WAIT_SYM)},
323
{ "NODEGROUP", SYM(NODEGROUP_SYM)},
324
{ "NONE", SYM(NONE_SYM)},
325
{ "NOT", SYM(NOT_SYM)},
326
{ "NOWAIT", SYM(NOWAIT_SYM)},
327
{ "NO_WRITE_TO_BINLOG", SYM(NO_WRITE_TO_BINLOG)},
328
{ "NULL", SYM(NULL_SYM)},
329
{ "NUMERIC", SYM(NUMERIC_SYM)},
330
{ "NVARCHAR", SYM(NVARCHAR_SYM)},
331
{ "OFFLINE", SYM(OFFLINE_SYM)},
332
{ "OFFSET", SYM(OFFSET_SYM)},
334
{ "ONE", SYM(ONE_SYM)},
335
{ "ONLINE", SYM(ONLINE_SYM)},
336
{ "ONE_SHOT", SYM(ONE_SHOT_SYM)},
337
{ "OPEN", SYM(OPEN_SYM)},
338
{ "OPTIMIZE", SYM(OPTIMIZE)},
339
{ "OPTIONS", SYM(OPTIONS_SYM)},
340
{ "OPTION", SYM(OPTION)},
341
{ "OPTIONALLY", SYM(OPTIONALLY)},
342
{ "OR", SYM(OR_SYM)},
343
{ "ORDER", SYM(ORDER_SYM)},
344
{ "OUT", SYM(OUT_SYM)},
345
{ "OUTER", SYM(OUTER)},
346
{ "OUTFILE", SYM(OUTFILE)},
347
{ "PACK_KEYS", SYM(PACK_KEYS_SYM)},
348
{ "PAGE", SYM(PAGE_SYM)},
349
{ "PAGE_CHECKSUM", SYM(PAGE_CHECKSUM_SYM)},
350
{ "PARTIAL", SYM(PARTIAL)},
351
{ "PASSWORD", SYM(PASSWORD)},
352
{ "PHASE", SYM(PHASE_SYM)},
353
{ "PLUGIN", SYM(PLUGIN_SYM)},
354
{ "PLUGINS", SYM(PLUGINS_SYM)},
355
{ "PORT", SYM(PORT_SYM)},
356
{ "PRECISION", SYM(PRECISION)},
357
{ "PREV", SYM(PREV_SYM)},
358
{ "PRIMARY", SYM(PRIMARY_SYM)},
359
{ "PROCESS" , SYM(PROCESS)},
360
{ "PROCESSLIST", SYM(PROCESSLIST_SYM)},
361
{ "PROFILE", SYM(PROFILE_SYM)},
362
{ "PROFILES", SYM(PROFILES_SYM)},
363
{ "PURGE", SYM(PURGE)},
364
{ "QUARTER", SYM(QUARTER_SYM)},
365
{ "QUERY", SYM(QUERY_SYM)},
366
{ "QUICK", SYM(QUICK)},
367
{ "RANGE", SYM(RANGE_SYM)},
368
{ "READ", SYM(READ_SYM)},
369
{ "READ_ONLY", SYM(READ_ONLY_SYM)},
370
{ "READ_WRITE", SYM(READ_WRITE_SYM)},
371
{ "READS", SYM(READS_SYM)},
372
{ "REAL", SYM(REAL)},
373
{ "REBUILD", SYM(REBUILD_SYM)},
374
{ "RECOVER", SYM(RECOVER_SYM)},
375
{ "REDO_BUFFER_SIZE", SYM(REDO_BUFFER_SIZE_SYM)},
376
{ "REDOFILE", SYM(REDOFILE_SYM)},
377
{ "REDUNDANT", SYM(REDUNDANT_SYM)},
378
{ "REFERENCES", SYM(REFERENCES)},
379
{ "RELAY_LOG_FILE", SYM(RELAY_LOG_FILE_SYM)},
380
{ "RELAY_LOG_POS", SYM(RELAY_LOG_POS_SYM)},
381
{ "RELAY_THREAD", SYM(RELAY_THREAD)},
382
{ "RELEASE", SYM(RELEASE_SYM)},
383
{ "RELOAD", SYM(RELOAD)},
384
{ "REMOVE", SYM(REMOVE_SYM)},
385
{ "RENAME", SYM(RENAME)},
386
{ "REORGANIZE", SYM(REORGANIZE_SYM)},
387
{ "REPAIR", SYM(REPAIR)},
388
{ "REPEATABLE", SYM(REPEATABLE_SYM)},
389
{ "REPLACE", SYM(REPLACE)},
390
{ "REPLICATION", SYM(REPLICATION)},
391
{ "REPEAT", SYM(REPEAT_SYM)},
392
{ "REQUIRE", SYM(REQUIRE_SYM)},
393
{ "RESET", SYM(RESET_SYM)},
394
{ "RESTRICT", SYM(RESTRICT)},
395
{ "RESUME", SYM(RESUME_SYM)},
396
{ "RETURN", SYM(RETURN_SYM)},
397
{ "RETURNS", SYM(RETURNS_SYM)},
398
{ "REVERSE", SYM(REVERSE_SYM)},
399
{ "REVOKE", SYM(REVOKE)},
400
{ "RIGHT", SYM(RIGHT)},
401
{ "ROLLBACK", SYM(ROLLBACK_SYM)},
402
{ "ROLLUP", SYM(ROLLUP_SYM)},
403
{ "ROUTINE", SYM(ROUTINE_SYM)},
404
{ "ROW", SYM(ROW_SYM)},
405
{ "ROWS", SYM(ROWS_SYM)},
406
{ "ROW_FORMAT", SYM(ROW_FORMAT_SYM)},
407
{ "SAVEPOINT", SYM(SAVEPOINT_SYM)},
408
{ "SCHEMA", SYM(DATABASE)},
409
{ "SCHEMAS", SYM(DATABASES)},
410
{ "SECOND", SYM(SECOND_SYM)},
411
{ "SECOND_MICROSECOND", SYM(SECOND_MICROSECOND_SYM)},
412
{ "SECURITY", SYM(SECURITY_SYM)},
413
{ "SELECT", SYM(SELECT_SYM)},
414
{ "SENSITIVE", SYM(SENSITIVE_SYM)},
415
{ "SEPARATOR", SYM(SEPARATOR_SYM)},
416
{ "SERIAL", SYM(SERIAL_SYM)},
417
{ "SERIALIZABLE", SYM(SERIALIZABLE_SYM)},
418
{ "SESSION", SYM(SESSION_SYM)},
419
{ "SERVER", SYM(SERVER_SYM)},
421
{ "SHARE", SYM(SHARE_SYM)},
422
{ "SHOW", SYM(SHOW)},
423
{ "SHUTDOWN", SYM(SHUTDOWN)},
424
{ "SIGNED", SYM(SIGNED_SYM)},
425
{ "SIMPLE", SYM(SIMPLE_SYM)},
426
{ "SLAVE", SYM(SLAVE)},
427
{ "SNAPSHOT", SYM(SNAPSHOT_SYM)},
428
{ "SMALLINT", SYM(SMALLINT)},
429
{ "SOCKET", SYM(SOCKET_SYM)},
430
{ "SOME", SYM(ANY_SYM)},
431
{ "SONAME", SYM(SONAME_SYM)},
432
{ "SOURCE", SYM(SOURCE_SYM)},
433
{ "SPECIFIC", SYM(SPECIFIC_SYM)},
434
{ "SQL", SYM(SQL_SYM)},
435
{ "SQLEXCEPTION", SYM(SQLEXCEPTION_SYM)},
436
{ "SQLSTATE", SYM(SQLSTATE_SYM)},
437
{ "SQLWARNING", SYM(SQLWARNING_SYM)},
438
{ "SQL_BIG_RESULT", SYM(SQL_BIG_RESULT)},
439
{ "SQL_BUFFER_RESULT", SYM(SQL_BUFFER_RESULT)},
440
{ "SQL_CALC_FOUND_ROWS", SYM(SQL_CALC_FOUND_ROWS)},
441
{ "SQL_SMALL_RESULT", SYM(SQL_SMALL_RESULT)},
442
{ "SQL_THREAD", SYM(SQL_THREAD)},
443
{ "SQL_TSI_FRAC_SECOND", SYM(FRAC_SECOND_SYM)},
444
{ "SQL_TSI_SECOND", SYM(SECOND_SYM)},
445
{ "SQL_TSI_MINUTE", SYM(MINUTE_SYM)},
446
{ "SQL_TSI_HOUR", SYM(HOUR_SYM)},
447
{ "SQL_TSI_DAY", SYM(DAY_SYM)},
448
{ "SQL_TSI_WEEK", SYM(WEEK_SYM)},
449
{ "SQL_TSI_MONTH", SYM(MONTH_SYM)},
450
{ "SQL_TSI_QUARTER", SYM(QUARTER_SYM)},
451
{ "SQL_TSI_YEAR", SYM(YEAR_SYM)},
452
{ "START", SYM(START_SYM)},
453
{ "STARTING", SYM(STARTING)},
454
{ "STARTS", SYM(STARTS_SYM)},
455
{ "STATUS", SYM(STATUS_SYM)},
456
{ "STOP", SYM(STOP_SYM)},
457
{ "STORAGE", SYM(STORAGE_SYM)},
458
{ "STRAIGHT_JOIN", SYM(STRAIGHT_JOIN)},
459
{ "STRING", SYM(STRING_SYM)},
460
{ "SUBJECT", SYM(SUBJECT_SYM)},
461
{ "SUPER", SYM(SUPER_SYM)},
462
{ "SUSPEND", SYM(SUSPEND_SYM)},
463
{ "SWAPS", SYM(SWAPS_SYM)},
464
{ "SWITCHES", SYM(SWITCHES_SYM)},
465
{ "TABLE", SYM(TABLE_SYM)},
466
{ "TABLES", SYM(TABLES)},
467
{ "TABLESPACE", SYM(TABLESPACE)},
468
{ "TABLE_CHECKSUM", SYM(TABLE_CHECKSUM_SYM)},
469
{ "TEMPORARY", SYM(TEMPORARY)},
470
{ "TEMPTABLE", SYM(TEMPTABLE_SYM)},
471
{ "TERMINATED", SYM(TERMINATED)},
472
{ "TEXT", SYM(TEXT_SYM)},
473
{ "THAN", SYM(THAN_SYM)},
474
{ "THEN", SYM(THEN_SYM)},
475
{ "TIME", SYM(TIME_SYM)},
476
{ "TIMESTAMP", SYM(TIMESTAMP)},
477
{ "TIMESTAMPADD", SYM(TIMESTAMP_ADD)},
478
{ "TIMESTAMPDIFF", SYM(TIMESTAMP_DIFF)},
479
{ "TINYBLOB", SYM(BLOB_SYM)},
480
{ "TINYINT", SYM(TINYINT)},
481
{ "TINYTEXT", SYM(TEXT_SYM)},
482
{ "TO", SYM(TO_SYM)},
483
{ "TRAILING", SYM(TRAILING)},
484
{ "TRANSACTION", SYM(TRANSACTION_SYM)},
485
{ "TRANSACTIONAL", SYM(TRANSACTIONAL_SYM)},
486
{ "TRUE", SYM(TRUE_SYM)},
487
{ "TRUNCATE", SYM(TRUNCATE_SYM)},
488
{ "TYPE", SYM(TYPE_SYM)},
489
{ "TYPES", SYM(TYPES_SYM)},
490
{ "UNCOMMITTED", SYM(UNCOMMITTED_SYM)},
491
{ "UNDEFINED", SYM(UNDEFINED_SYM)},
492
{ "UNDOFILE", SYM(UNDOFILE_SYM)},
493
{ "UNDO", SYM(UNDO_SYM)},
494
{ "UNICODE", SYM(UNICODE_SYM)},
495
{ "UNION", SYM(UNION_SYM)},
496
{ "UNIQUE", SYM(UNIQUE_SYM)},
497
{ "UNKNOWN", SYM(UNKNOWN_SYM)},
498
{ "UNLOCK", SYM(UNLOCK_SYM)},
499
{ "UNINSTALL", SYM(UNINSTALL_SYM)},
500
{ "UNSIGNED", SYM(UNSIGNED)},
501
{ "UNTIL", SYM(UNTIL_SYM)},
502
{ "UPDATE", SYM(UPDATE_SYM)},
503
{ "UPGRADE", SYM(UPGRADE_SYM)},
504
{ "USAGE", SYM(USAGE)},
505
{ "USE", SYM(USE_SYM)},
506
{ "USER", SYM(USER)},
507
{ "USER_RESOURCES", SYM(RESOURCES)},
508
{ "USE_FRM", SYM(USE_FRM)},
509
{ "USING", SYM(USING)},
510
{ "UTC_DATE", SYM(UTC_DATE_SYM)},
511
{ "UTC_TIME", SYM(UTC_TIME_SYM)},
512
{ "UTC_TIMESTAMP", SYM(UTC_TIMESTAMP_SYM)},
513
{ "VALUE", SYM(VALUE_SYM)},
514
{ "VALUES", SYM(VALUES)},
515
{ "VARBINARY", SYM(VARBINARY)},
516
{ "VARCHAR", SYM(VARCHAR)},
517
{ "VARCHARACTER", SYM(VARCHAR)},
518
{ "VARIABLES", SYM(VARIABLES)},
519
{ "VARYING", SYM(VARYING)},
520
{ "WAIT", SYM(WAIT_SYM)},
521
{ "WARNINGS", SYM(WARNINGS)},
522
{ "WEEK", SYM(WEEK_SYM)},
523
{ "WEIGHT_STRING", SYM(WEIGHT_STRING_SYM)},
524
{ "WHEN", SYM(WHEN_SYM)},
525
{ "WHERE", SYM(WHERE)},
526
{ "WITH", SYM(WITH)},
527
{ "WORK", SYM(WORK_SYM)},
528
{ "WRAPPER", SYM(WRAPPER_SYM)},
529
{ "WRITE", SYM(WRITE_SYM)},
531
{ "XML", SYM(XML_SYM)}, /* LOAD XML Arnold/Erik */
532
{ "YEAR", SYM(YEAR_SYM)},
533
{ "YEAR_MONTH", SYM(YEAR_MONTH_SYM)},
534
{ "ZEROFILL", SYM(ZEROFILL)},
538
static SYMBOL sql_functions[] = {
539
{ "ADDDATE", SYM(ADDDATE_SYM)},
540
{ "BIT_AND", SYM(BIT_AND)},
541
{ "BIT_OR", SYM(BIT_OR)},
542
{ "BIT_XOR", SYM(BIT_XOR)},
543
{ "CAST", SYM(CAST_SYM)},
544
{ "COUNT", SYM(COUNT_SYM)},
545
{ "CURDATE", SYM(CURDATE)},
546
{ "CURTIME", SYM(CURTIME)},
547
{ "DATE_ADD", SYM(DATE_ADD_INTERVAL)},
548
{ "DATE_SUB", SYM(DATE_SUB_INTERVAL)},
549
{ "EXTRACT", SYM(EXTRACT_SYM)},
550
{ "GROUP_CONCAT", SYM(GROUP_CONCAT_SYM)},
551
{ "MAX", SYM(MAX_SYM)},
552
{ "MID", SYM(SUBSTRING)}, /* unireg function */
553
{ "MIN", SYM(MIN_SYM)},
554
{ "NOW", SYM(NOW_SYM)},
555
{ "POSITION", SYM(POSITION_SYM)},
556
{ "SESSION_USER", SYM(USER)},
557
{ "STD", SYM(STD_SYM)},
558
{ "STDDEV", SYM(STD_SYM)},
559
{ "STDDEV_POP", SYM(STD_SYM)},
560
{ "STDDEV_SAMP", SYM(STDDEV_SAMP_SYM)},
561
{ "SUBDATE", SYM(SUBDATE_SYM)},
562
{ "SUBSTR", SYM(SUBSTRING)},
563
{ "SUBSTRING", SYM(SUBSTRING)},
564
{ "SUM", SYM(SUM_SYM)},
565
{ "SYSDATE", SYM(SYSDATE)},
566
{ "SYSTEM_USER", SYM(USER)},
567
{ "TRIM", SYM(TRIM)},
568
{ "VARIANCE", SYM(VARIANCE_SYM)},
569
{ "VAR_POP", SYM(VARIANCE_SYM)},
570
{ "VAR_SAMP", SYM(VAR_SAMP_SYM)},