387
258
static int get_field_disp_length(drizzle_column_st * field);
388
259
static const char * strcont(register const char *str, register const char *set);
390
/* A class which contains information on the commands this program
261
/* A structure which contains information on the commands this program
391
262
can understand. */
395
264
const char *name; /* User printable name of the function. */
396
265
char cmd_char; /* msql command character */
398
Commands(const char *in_name,
400
int (*in_func)(string *str,const char *name),
401
bool in_takes_params,
405
cmd_char(in_cmd_char),
407
takes_params(in_takes_params),
420
int (*func)(string *str,const char *);/* Function to call to do the job. */
422
const char *getName() const
427
char getCmdChar() const
432
bool getTakesParams() const
437
const char *getDoc() const
442
void setName(const char *in_name)
447
void setCmdChar(char in_cmd_char)
449
cmd_char= in_cmd_char;
452
void setTakesParams(bool in_takes_params)
454
takes_params= in_takes_params;
457
void setDoc(const char *in_doc)
266
int (*func)(string *str,const char *); /* Function to call to do the job. */
463
267
bool takes_params; /* Max parameters for command */
464
268
const char *doc; /* Documentation for this function. */
468
static Commands commands[] = {
469
Commands( "?", '?', com_help, 0, N_("Synonym for `help'.") ),
470
Commands( "clear", 'c', com_clear, 0, N_("Clear command.")),
471
Commands( "connect",'r', com_connect,1,
472
N_("Reconnect to the server. Optional arguments are db and host.")),
473
Commands( "delimiter", 'd', com_delimiter, 1,
474
N_("Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.") ),
475
Commands( "ego", 'G', com_ego, 0,
476
N_("Send command to drizzle server, display result vertically.")),
477
Commands( "exit", 'q', com_quit, 0, N_("Exit drizzle. Same as quit.")),
478
Commands( "go", 'g', com_go, 0, N_("Send command to drizzle server.") ),
479
Commands( "help", 'h', com_help, 0, N_("Display this help.") ),
480
Commands( "nopager",'n', com_nopager,0, N_("Disable pager, print to stdout.") ),
481
Commands( "notee", 't', com_notee, 0, N_("Don't write into outfile.") ),
482
Commands( "pager", 'P', com_pager, 1,
483
N_("Set PAGER [to_pager]. Print the query results via PAGER.") ),
484
Commands( "print", 'p', com_print, 0, N_("Print current command.") ),
485
Commands( "prompt", 'R', com_prompt, 1, N_("Change your drizzle prompt.")),
486
Commands( "quit", 'q', com_quit, 0, N_("Quit drizzle.") ),
487
Commands( "rehash", '#', com_rehash, 0, N_("Rebuild completion hash.") ),
488
Commands( "source", '.', com_source, 1,
489
N_("Execute an SQL script file. Takes a file name as an argument.")),
490
Commands( "status", 's', com_status, 0, N_("Get status information from the server.")),
491
Commands( "tee", 'T', com_tee, 1,
492
N_("Set outfile [to_outfile]. Append everything into given outfile.") ),
493
Commands( "use", 'u', com_use, 1,
494
N_("Use another database. Takes database name as argument.") ),
495
Commands( "shutdown", 'u', com_shutdown, 1,
496
N_("Shutdown the instance you are connected too.") ),
497
Commands( "warnings", 'W', com_warnings, 0,
498
N_("Show warnings after every statement.") ),
499
Commands( "nowarning", 'w', com_nowarnings, 0,
500
N_("Don't show warnings after every statement.") ),
272
static COMMANDS commands[] = {
273
{ "?", '?', com_help, 0, N_("Synonym for `help'.") },
274
{ "clear", 'c', com_clear, 0, N_("Clear command.")},
275
{ "connect",'r', com_connect,1,
276
N_("Reconnect to the server. Optional arguments are db and host." }),
277
{ "delimiter", 'd', com_delimiter, 1,
278
N_("Set statement delimiter. NOTE: Takes the rest of the line as new delimiter.") },
279
{ "ego", 'G', com_ego, 0,
280
N_("Send command to drizzle server, display result vertically.")},
281
{ "exit", 'q', com_quit, 0, N_("Exit drizzle. Same as quit.")},
282
{ "go", 'g', com_go, 0, N_("Send command to drizzle server.") },
283
{ "help", 'h', com_help, 0, N_("Display this help.") },
284
{ "nopager",'n', com_nopager,0, N_("Disable pager, print to stdout.") },
285
{ "notee", 't', com_notee, 0, N_("Don't write into outfile.") },
286
{ "pager", 'P', com_pager, 1,
287
N_("Set PAGER [to_pager]. Print the query results via PAGER.") },
288
{ "print", 'p', com_print, 0, N_("Print current command.") },
289
{ "prompt", 'R', com_prompt, 1, N_("Change your drizzle prompt.")},
290
{ "quit", 'q', com_quit, 0, N_("Quit drizzle.") },
291
{ "rehash", '#', com_rehash, 0, N_("Rebuild completion hash.") },
292
{ "source", '.', com_source, 1,
293
N_("Execute an SQL script file. Takes a file name as an argument.")},
294
{ "status", 's', com_status, 0, N_("Get status information from the server.")},
295
{ "tee", 'T', com_tee, 1,
296
N_("Set outfile [to_outfile]. Append everything into given outfile.") },
297
{ "use", 'u', com_use, 1,
298
N_("Use another database. Takes database name as argument.") },
299
{ "warnings", 'W', com_warnings, 0,
300
N_("Show warnings after every statement.") },
301
{ "nowarning", 'w', com_nowarnings, 0,
302
N_("Don't show warnings after every statement.") },
501
303
/* Get bash-like expansion for some commands */
502
Commands( "create table", 0, 0, 0, ""),
503
Commands( "create database", 0, 0, 0, ""),
504
Commands( "show databases", 0, 0, 0, ""),
505
Commands( "show fields from", 0, 0, 0, ""),
506
Commands( "show keys from", 0, 0, 0, ""),
507
Commands( "show tables", 0, 0, 0, ""),
508
Commands( "load data from", 0, 0, 0, ""),
509
Commands( "alter table", 0, 0, 0, ""),
510
Commands( "set option", 0, 0, 0, ""),
511
Commands( "lock tables", 0, 0, 0, ""),
512
Commands( "unlock tables", 0, 0, 0, ""),
304
{ "create table", 0, 0, 0, ""},
305
{ "create database", 0, 0, 0, ""},
306
{ "show databases", 0, 0, 0, ""},
307
{ "show fields from", 0, 0, 0, ""},
308
{ "show keys from", 0, 0, 0, ""},
309
{ "show tables", 0, 0, 0, ""},
310
{ "load data from", 0, 0, 0, ""},
311
{ "alter table", 0, 0, 0, ""},
312
{ "set option", 0, 0, 0, ""},
313
{ "lock tables", 0, 0, 0, ""},
314
{ "unlock tables", 0, 0, 0, ""},
513
315
/* generated 2006-12-28. Refresh occasionally from lexer. */
514
Commands( "ACTION", 0, 0, 0, ""),
515
Commands( "ADD", 0, 0, 0, ""),
516
Commands( "AFTER", 0, 0, 0, ""),
517
Commands( "AGAINST", 0, 0, 0, ""),
518
Commands( "AGGREGATE", 0, 0, 0, ""),
519
Commands( "ALL", 0, 0, 0, ""),
520
Commands( "ALGORITHM", 0, 0, 0, ""),
521
Commands( "ALTER", 0, 0, 0, ""),
522
Commands( "ANALYZE", 0, 0, 0, ""),
523
Commands( "AND", 0, 0, 0, ""),
524
Commands( "ANY", 0, 0, 0, ""),
525
Commands( "AS", 0, 0, 0, ""),
526
Commands( "ASC", 0, 0, 0, ""),
527
Commands( "ASCII", 0, 0, 0, ""),
528
Commands( "ASENSITIVE", 0, 0, 0, ""),
529
Commands( "AUTO_INCREMENT", 0, 0, 0, ""),
530
Commands( "AVG", 0, 0, 0, ""),
531
Commands( "AVG_ROW_LENGTH", 0, 0, 0, ""),
532
Commands( "BEFORE", 0, 0, 0, ""),
533
Commands( "BEGIN", 0, 0, 0, ""),
534
Commands( "BETWEEN", 0, 0, 0, ""),
535
Commands( "BIGINT", 0, 0, 0, ""),
536
Commands( "BINARY", 0, 0, 0, ""),
537
Commands( "BIT", 0, 0, 0, ""),
538
Commands( "BLOB", 0, 0, 0, ""),
539
Commands( "BOOL", 0, 0, 0, ""),
540
Commands( "BOOLEAN", 0, 0, 0, ""),
541
Commands( "BOTH", 0, 0, 0, ""),
542
Commands( "BTREE", 0, 0, 0, ""),
543
Commands( "BY", 0, 0, 0, ""),
544
Commands( "BYTE", 0, 0, 0, ""),
545
Commands( "CACHE", 0, 0, 0, ""),
546
Commands( "CALL", 0, 0, 0, ""),
547
Commands( "CASCADE", 0, 0, 0, ""),
548
Commands( "CASCADED", 0, 0, 0, ""),
549
Commands( "CASE", 0, 0, 0, ""),
550
Commands( "CHAIN", 0, 0, 0, ""),
551
Commands( "CHANGE", 0, 0, 0, ""),
552
Commands( "CHANGED", 0, 0, 0, ""),
553
Commands( "CHAR", 0, 0, 0, ""),
554
Commands( "CHARACTER", 0, 0, 0, ""),
555
Commands( "CHECK", 0, 0, 0, ""),
556
Commands( "CHECKSUM", 0, 0, 0, ""),
557
Commands( "CLIENT", 0, 0, 0, ""),
558
Commands( "CLOSE", 0, 0, 0, ""),
559
Commands( "COLLATE", 0, 0, 0, ""),
560
Commands( "COLLATION", 0, 0, 0, ""),
561
Commands( "COLUMN", 0, 0, 0, ""),
562
Commands( "COLUMNS", 0, 0, 0, ""),
563
Commands( "COMMENT", 0, 0, 0, ""),
564
Commands( "COMMIT", 0, 0, 0, ""),
565
Commands( "COMMITTED", 0, 0, 0, ""),
566
Commands( "COMPACT", 0, 0, 0, ""),
567
Commands( "COMPRESSED", 0, 0, 0, ""),
568
Commands( "CONCURRENT", 0, 0, 0, ""),
569
Commands( "CONDITION", 0, 0, 0, ""),
570
Commands( "CONNECTION", 0, 0, 0, ""),
571
Commands( "CONSISTENT", 0, 0, 0, ""),
572
Commands( "CONSTRAINT", 0, 0, 0, ""),
573
Commands( "CONTAINS", 0, 0, 0, ""),
574
Commands( "CONTINUE", 0, 0, 0, ""),
575
Commands( "CONVERT", 0, 0, 0, ""),
576
Commands( "CREATE", 0, 0, 0, ""),
577
Commands( "CROSS", 0, 0, 0, ""),
578
Commands( "CUBE", 0, 0, 0, ""),
579
Commands( "CURRENT_DATE", 0, 0, 0, ""),
580
Commands( "CURRENT_TIMESTAMP", 0, 0, 0, ""),
581
Commands( "CURRENT_USER", 0, 0, 0, ""),
582
Commands( "CURSOR", 0, 0, 0, ""),
583
Commands( "DATA", 0, 0, 0, ""),
584
Commands( "DATABASE", 0, 0, 0, ""),
585
Commands( "DATABASES", 0, 0, 0, ""),
586
Commands( "DATE", 0, 0, 0, ""),
587
Commands( "DATETIME", 0, 0, 0, ""),
588
Commands( "DAY", 0, 0, 0, ""),
589
Commands( "DAY_HOUR", 0, 0, 0, ""),
590
Commands( "DAY_MICROSECOND", 0, 0, 0, ""),
591
Commands( "DAY_MINUTE", 0, 0, 0, ""),
592
Commands( "DAY_SECOND", 0, 0, 0, ""),
593
Commands( "DEALLOCATE", 0, 0, 0, ""),
594
Commands( "DEC", 0, 0, 0, ""),
595
Commands( "DECIMAL", 0, 0, 0, ""),
596
Commands( "DECLARE", 0, 0, 0, ""),
597
Commands( "DEFAULT", 0, 0, 0, ""),
598
Commands( "DEFINER", 0, 0, 0, ""),
599
Commands( "DELAYED", 0, 0, 0, ""),
600
Commands( "DELETE", 0, 0, 0, ""),
601
Commands( "DESC", 0, 0, 0, ""),
602
Commands( "DESCRIBE", 0, 0, 0, ""),
603
Commands( "DETERMINISTIC", 0, 0, 0, ""),
604
Commands( "DISABLE", 0, 0, 0, ""),
605
Commands( "DISCARD", 0, 0, 0, ""),
606
Commands( "DISTINCT", 0, 0, 0, ""),
607
Commands( "DISTINCTROW", 0, 0, 0, ""),
608
Commands( "DIV", 0, 0, 0, ""),
609
Commands( "DOUBLE", 0, 0, 0, ""),
610
Commands( "DROP", 0, 0, 0, ""),
611
Commands( "DUMPFILE", 0, 0, 0, ""),
612
Commands( "DUPLICATE", 0, 0, 0, ""),
613
Commands( "DYNAMIC", 0, 0, 0, ""),
614
Commands( "EACH", 0, 0, 0, ""),
615
Commands( "ELSE", 0, 0, 0, ""),
616
Commands( "ELSEIF", 0, 0, 0, ""),
617
Commands( "ENABLE", 0, 0, 0, ""),
618
Commands( "ENCLOSED", 0, 0, 0, ""),
619
Commands( "END", 0, 0, 0, ""),
620
Commands( "ENGINE", 0, 0, 0, ""),
621
Commands( "ENGINES", 0, 0, 0, ""),
622
Commands( "ENUM", 0, 0, 0, ""),
623
Commands( "ERRORS", 0, 0, 0, ""),
624
Commands( "ESCAPE", 0, 0, 0, ""),
625
Commands( "ESCAPED", 0, 0, 0, ""),
626
Commands( "EXISTS", 0, 0, 0, ""),
627
Commands( "EXIT", 0, 0, 0, ""),
628
Commands( "EXPLAIN", 0, 0, 0, ""),
629
Commands( "EXTENDED", 0, 0, 0, ""),
630
Commands( "FALSE", 0, 0, 0, ""),
631
Commands( "FAST", 0, 0, 0, ""),
632
Commands( "FETCH", 0, 0, 0, ""),
633
Commands( "FIELDS", 0, 0, 0, ""),
634
Commands( "FILE", 0, 0, 0, ""),
635
Commands( "FIRST", 0, 0, 0, ""),
636
Commands( "FIXED", 0, 0, 0, ""),
637
Commands( "FLOAT", 0, 0, 0, ""),
638
Commands( "FLOAT4", 0, 0, 0, ""),
639
Commands( "FLOAT8", 0, 0, 0, ""),
640
Commands( "FLUSH", 0, 0, 0, ""),
641
Commands( "FOR", 0, 0, 0, ""),
642
Commands( "FORCE", 0, 0, 0, ""),
643
Commands( "FOREIGN", 0, 0, 0, ""),
644
Commands( "FOUND", 0, 0, 0, ""),
645
Commands( "FRAC_SECOND", 0, 0, 0, ""),
646
Commands( "FROM", 0, 0, 0, ""),
647
Commands( "FULL", 0, 0, 0, ""),
648
Commands( "FUNCTION", 0, 0, 0, ""),
649
Commands( "GLOBAL", 0, 0, 0, ""),
650
Commands( "GRANT", 0, 0, 0, ""),
651
Commands( "GRANTS", 0, 0, 0, ""),
652
Commands( "GROUP", 0, 0, 0, ""),
653
Commands( "HANDLER", 0, 0, 0, ""),
654
Commands( "HASH", 0, 0, 0, ""),
655
Commands( "HAVING", 0, 0, 0, ""),
656
Commands( "HELP", 0, 0, 0, ""),
657
Commands( "HIGH_PRIORITY", 0, 0, 0, ""),
658
Commands( "HOSTS", 0, 0, 0, ""),
659
Commands( "HOUR", 0, 0, 0, ""),
660
Commands( "HOUR_MICROSECOND", 0, 0, 0, ""),
661
Commands( "HOUR_MINUTE", 0, 0, 0, ""),
662
Commands( "HOUR_SECOND", 0, 0, 0, ""),
663
Commands( "IDENTIFIED", 0, 0, 0, ""),
664
Commands( "IF", 0, 0, 0, ""),
665
Commands( "IGNORE", 0, 0, 0, ""),
666
Commands( "IMPORT", 0, 0, 0, ""),
667
Commands( "IN", 0, 0, 0, ""),
668
Commands( "INDEX", 0, 0, 0, ""),
669
Commands( "INDEXES", 0, 0, 0, ""),
670
Commands( "INFILE", 0, 0, 0, ""),
671
Commands( "INNER", 0, 0, 0, ""),
672
Commands( "INNOBASE", 0, 0, 0, ""),
673
Commands( "INNODB", 0, 0, 0, ""),
674
Commands( "INOUT", 0, 0, 0, ""),
675
Commands( "INSENSITIVE", 0, 0, 0, ""),
676
Commands( "INSERT", 0, 0, 0, ""),
677
Commands( "INSERT_METHOD", 0, 0, 0, ""),
678
Commands( "INT", 0, 0, 0, ""),
679
Commands( "INT1", 0, 0, 0, ""),
680
Commands( "INT2", 0, 0, 0, ""),
681
Commands( "INT3", 0, 0, 0, ""),
682
Commands( "INT4", 0, 0, 0, ""),
683
Commands( "INT8", 0, 0, 0, ""),
684
Commands( "INTEGER", 0, 0, 0, ""),
685
Commands( "INTERVAL", 0, 0, 0, ""),
686
Commands( "INTO", 0, 0, 0, ""),
687
Commands( "IO_THREAD", 0, 0, 0, ""),
688
Commands( "IS", 0, 0, 0, ""),
689
Commands( "ISOLATION", 0, 0, 0, ""),
690
Commands( "ISSUER", 0, 0, 0, ""),
691
Commands( "ITERATE", 0, 0, 0, ""),
692
Commands( "INVOKER", 0, 0, 0, ""),
693
Commands( "JOIN", 0, 0, 0, ""),
694
Commands( "KEY", 0, 0, 0, ""),
695
Commands( "KEYS", 0, 0, 0, ""),
696
Commands( "KILL", 0, 0, 0, ""),
697
Commands( "LANGUAGE", 0, 0, 0, ""),
698
Commands( "LAST", 0, 0, 0, ""),
699
Commands( "LEADING", 0, 0, 0, ""),
700
Commands( "LEAVE", 0, 0, 0, ""),
701
Commands( "LEAVES", 0, 0, 0, ""),
702
Commands( "LEFT", 0, 0, 0, ""),
703
Commands( "LEVEL", 0, 0, 0, ""),
704
Commands( "LIKE", 0, 0, 0, ""),
705
Commands( "LIMIT", 0, 0, 0, ""),
706
Commands( "LINES", 0, 0, 0, ""),
707
Commands( "LINESTRING", 0, 0, 0, ""),
708
Commands( "LOAD", 0, 0, 0, ""),
709
Commands( "LOCAL", 0, 0, 0, ""),
710
Commands( "LOCALTIMESTAMP", 0, 0, 0, ""),
711
Commands( "LOCK", 0, 0, 0, ""),
712
Commands( "LOCKS", 0, 0, 0, ""),
713
Commands( "LOGS", 0, 0, 0, ""),
714
Commands( "LONG", 0, 0, 0, ""),
715
Commands( "LOOP", 0, 0, 0, ""),
716
Commands( "MATCH", 0, 0, 0, ""),
717
Commands( "MAX_CONNECTIONS_PER_HOUR", 0, 0, 0, ""),
718
Commands( "MAX_QUERIES_PER_HOUR", 0, 0, 0, ""),
719
Commands( "MAX_ROWS", 0, 0, 0, ""),
720
Commands( "MAX_UPDATES_PER_HOUR", 0, 0, 0, ""),
721
Commands( "MAX_USER_CONNECTIONS", 0, 0, 0, ""),
722
Commands( "MEDIUM", 0, 0, 0, ""),
723
Commands( "MERGE", 0, 0, 0, ""),
724
Commands( "MICROSECOND", 0, 0, 0, ""),
725
Commands( "MIGRATE", 0, 0, 0, ""),
726
Commands( "MINUTE", 0, 0, 0, ""),
727
Commands( "MINUTE_MICROSECOND", 0, 0, 0, ""),
728
Commands( "MINUTE_SECOND", 0, 0, 0, ""),
729
Commands( "MIN_ROWS", 0, 0, 0, ""),
730
Commands( "MOD", 0, 0, 0, ""),
731
Commands( "MODE", 0, 0, 0, ""),
732
Commands( "MODIFIES", 0, 0, 0, ""),
733
Commands( "MODIFY", 0, 0, 0, ""),
734
Commands( "MONTH", 0, 0, 0, ""),
735
Commands( "MULTILINESTRING", 0, 0, 0, ""),
736
Commands( "MULTIPOINT", 0, 0, 0, ""),
737
Commands( "MULTIPOLYGON", 0, 0, 0, ""),
738
Commands( "MUTEX", 0, 0, 0, ""),
739
Commands( "NAME", 0, 0, 0, ""),
740
Commands( "NAMES", 0, 0, 0, ""),
741
Commands( "NATIONAL", 0, 0, 0, ""),
742
Commands( "NATURAL", 0, 0, 0, ""),
743
Commands( "NCHAR", 0, 0, 0, ""),
744
Commands( "NEW", 0, 0, 0, ""),
745
Commands( "NEXT", 0, 0, 0, ""),
746
Commands( "NO", 0, 0, 0, ""),
747
Commands( "NONE", 0, 0, 0, ""),
748
Commands( "NOT", 0, 0, 0, ""),
749
Commands( "NULL", 0, 0, 0, ""),
750
Commands( "NUMERIC", 0, 0, 0, ""),
751
Commands( "NVARCHAR", 0, 0, 0, ""),
752
Commands( "OFFSET", 0, 0, 0, ""),
753
Commands( "ON", 0, 0, 0, ""),
754
Commands( "ONE", 0, 0, 0, ""),
755
Commands( "ONE_SHOT", 0, 0, 0, ""),
756
Commands( "OPEN", 0, 0, 0, ""),
757
Commands( "OPTIMIZE", 0, 0, 0, ""),
758
Commands( "OPTION", 0, 0, 0, ""),
759
Commands( "OPTIONALLY", 0, 0, 0, ""),
760
Commands( "OR", 0, 0, 0, ""),
761
Commands( "ORDER", 0, 0, 0, ""),
762
Commands( "OUT", 0, 0, 0, ""),
763
Commands( "OUTER", 0, 0, 0, ""),
764
Commands( "OUTFILE", 0, 0, 0, ""),
765
Commands( "PACK_KEYS", 0, 0, 0, ""),
766
Commands( "PARTIAL", 0, 0, 0, ""),
767
Commands( "PASSWORD", 0, 0, 0, ""),
768
Commands( "PHASE", 0, 0, 0, ""),
769
Commands( "PRECISION", 0, 0, 0, ""),
770
Commands( "PREPARE", 0, 0, 0, ""),
771
Commands( "PREV", 0, 0, 0, ""),
772
Commands( "PRIMARY", 0, 0, 0, ""),
773
Commands( "PRIVILEGES", 0, 0, 0, ""),
774
Commands( "PROCEDURE", 0, 0, 0, ""),
775
Commands( "PROCESS", 0, 0, 0, ""),
776
Commands( "PROCESSLIST", 0, 0, 0, ""),
777
Commands( "PURGE", 0, 0, 0, ""),
778
Commands( "QUARTER", 0, 0, 0, ""),
779
Commands( "QUERY", 0, 0, 0, ""),
780
Commands( "QUICK", 0, 0, 0, ""),
781
Commands( "READ", 0, 0, 0, ""),
782
Commands( "READS", 0, 0, 0, ""),
783
Commands( "REAL", 0, 0, 0, ""),
784
Commands( "RECOVER", 0, 0, 0, ""),
785
Commands( "REDUNDANT", 0, 0, 0, ""),
786
Commands( "REFERENCES", 0, 0, 0, ""),
787
Commands( "REGEXP", 0, 0, 0, ""),
788
Commands( "RELEASE", 0, 0, 0, ""),
789
Commands( "RELOAD", 0, 0, 0, ""),
790
Commands( "RENAME", 0, 0, 0, ""),
791
Commands( "REPAIR", 0, 0, 0, ""),
792
Commands( "REPEATABLE", 0, 0, 0, ""),
793
Commands( "REPLACE", 0, 0, 0, ""),
794
Commands( "REPEAT", 0, 0, 0, ""),
795
Commands( "REQUIRE", 0, 0, 0, ""),
796
Commands( "RESET", 0, 0, 0, ""),
797
Commands( "RESTORE", 0, 0, 0, ""),
798
Commands( "RESTRICT", 0, 0, 0, ""),
799
Commands( "RESUME", 0, 0, 0, ""),
800
Commands( "RETURN", 0, 0, 0, ""),
801
Commands( "RETURNS", 0, 0, 0, ""),
802
Commands( "REVOKE", 0, 0, 0, ""),
803
Commands( "RIGHT", 0, 0, 0, ""),
804
Commands( "RLIKE", 0, 0, 0, ""),
805
Commands( "ROLLBACK", 0, 0, 0, ""),
806
Commands( "ROLLUP", 0, 0, 0, ""),
807
Commands( "ROUTINE", 0, 0, 0, ""),
808
Commands( "ROW", 0, 0, 0, ""),
809
Commands( "ROWS", 0, 0, 0, ""),
810
Commands( "ROW_FORMAT", 0, 0, 0, ""),
811
Commands( "RTREE", 0, 0, 0, ""),
812
Commands( "SAVEPOINT", 0, 0, 0, ""),
813
Commands( "SCHEMA", 0, 0, 0, ""),
814
Commands( "SCHEMAS", 0, 0, 0, ""),
815
Commands( "SECOND", 0, 0, 0, ""),
816
Commands( "SECOND_MICROSECOND", 0, 0, 0, ""),
817
Commands( "SECURITY", 0, 0, 0, ""),
818
Commands( "SELECT", 0, 0, 0, ""),
819
Commands( "SENSITIVE", 0, 0, 0, ""),
820
Commands( "SEPARATOR", 0, 0, 0, ""),
821
Commands( "SERIAL", 0, 0, 0, ""),
822
Commands( "SERIALIZABLE", 0, 0, 0, ""),
823
Commands( "SESSION", 0, 0, 0, ""),
824
Commands( "SET", 0, 0, 0, ""),
825
Commands( "SHARE", 0, 0, 0, ""),
826
Commands( "SHOW", 0, 0, 0, ""),
827
Commands( "SHUTDOWN", 0, 0, 0, ""),
828
Commands( "SIGNED", 0, 0, 0, ""),
829
Commands( "SIMPLE", 0, 0, 0, ""),
830
Commands( "SLAVE", 0, 0, 0, ""),
831
Commands( "SNAPSHOT", 0, 0, 0, ""),
832
Commands( "SOME", 0, 0, 0, ""),
833
Commands( "SONAME", 0, 0, 0, ""),
834
Commands( "SOUNDS", 0, 0, 0, ""),
835
Commands( "SPATIAL", 0, 0, 0, ""),
836
Commands( "SPECIFIC", 0, 0, 0, ""),
837
Commands( "SQL", 0, 0, 0, ""),
838
Commands( "SQLEXCEPTION", 0, 0, 0, ""),
839
Commands( "SQLSTATE", 0, 0, 0, ""),
840
Commands( "SQLWARNING", 0, 0, 0, ""),
841
Commands( "SQL_BIG_RESULT", 0, 0, 0, ""),
842
Commands( "SQL_BUFFER_RESULT", 0, 0, 0, ""),
843
Commands( "SQL_CACHE", 0, 0, 0, ""),
844
Commands( "SQL_CALC_FOUND_ROWS", 0, 0, 0, ""),
845
Commands( "SQL_NO_CACHE", 0, 0, 0, ""),
846
Commands( "SQL_SMALL_RESULT", 0, 0, 0, ""),
847
Commands( "SQL_THREAD", 0, 0, 0, ""),
848
Commands( "SQL_TSI_FRAC_SECOND", 0, 0, 0, ""),
849
Commands( "SQL_TSI_SECOND", 0, 0, 0, ""),
850
Commands( "SQL_TSI_MINUTE", 0, 0, 0, ""),
851
Commands( "SQL_TSI_HOUR", 0, 0, 0, ""),
852
Commands( "SQL_TSI_DAY", 0, 0, 0, ""),
853
Commands( "SQL_TSI_WEEK", 0, 0, 0, ""),
854
Commands( "SQL_TSI_MONTH", 0, 0, 0, ""),
855
Commands( "SQL_TSI_QUARTER", 0, 0, 0, ""),
856
Commands( "SQL_TSI_YEAR", 0, 0, 0, ""),
857
Commands( "SSL", 0, 0, 0, ""),
858
Commands( "START", 0, 0, 0, ""),
859
Commands( "STARTING", 0, 0, 0, ""),
860
Commands( "STATUS", 0, 0, 0, ""),
861
Commands( "STOP", 0, 0, 0, ""),
862
Commands( "STORAGE", 0, 0, 0, ""),
863
Commands( "STRAIGHT_JOIN", 0, 0, 0, ""),
864
Commands( "STRING", 0, 0, 0, ""),
865
Commands( "STRIPED", 0, 0, 0, ""),
866
Commands( "SUBJECT", 0, 0, 0, ""),
867
Commands( "SUPER", 0, 0, 0, ""),
868
Commands( "SUSPEND", 0, 0, 0, ""),
869
Commands( "TABLE", 0, 0, 0, ""),
870
Commands( "TABLES", 0, 0, 0, ""),
871
Commands( "TABLESPACE", 0, 0, 0, ""),
872
Commands( "TEMPORARY", 0, 0, 0, ""),
873
Commands( "TEMPTABLE", 0, 0, 0, ""),
874
Commands( "TERMINATED", 0, 0, 0, ""),
875
Commands( "TEXT", 0, 0, 0, ""),
876
Commands( "THEN", 0, 0, 0, ""),
877
Commands( "TIMESTAMP", 0, 0, 0, ""),
878
Commands( "TIMESTAMPADD", 0, 0, 0, ""),
879
Commands( "TIMESTAMPDIFF", 0, 0, 0, ""),
880
Commands( "TO", 0, 0, 0, ""),
881
Commands( "TRAILING", 0, 0, 0, ""),
882
Commands( "TRANSACTION", 0, 0, 0, ""),
883
Commands( "TRUE", 0, 0, 0, ""),
884
Commands( "TRUNCATE", 0, 0, 0, ""),
885
Commands( "TYPE", 0, 0, 0, ""),
886
Commands( "TYPES", 0, 0, 0, ""),
887
Commands( "UNCOMMITTED", 0, 0, 0, ""),
888
Commands( "UNDEFINED", 0, 0, 0, ""),
889
Commands( "UNDO", 0, 0, 0, ""),
890
Commands( "UNICODE", 0, 0, 0, ""),
891
Commands( "UNION", 0, 0, 0, ""),
892
Commands( "UNIQUE", 0, 0, 0, ""),
893
Commands( "UNKNOWN", 0, 0, 0, ""),
894
Commands( "UNLOCK", 0, 0, 0, ""),
895
Commands( "UNTIL", 0, 0, 0, ""),
896
Commands( "UPDATE", 0, 0, 0, ""),
897
Commands( "UPGRADE", 0, 0, 0, ""),
898
Commands( "USAGE", 0, 0, 0, ""),
899
Commands( "USE", 0, 0, 0, ""),
900
Commands( "USER", 0, 0, 0, ""),
901
Commands( "USER_RESOURCES", 0, 0, 0, ""),
902
Commands( "USING", 0, 0, 0, ""),
903
Commands( "UTC_DATE", 0, 0, 0, ""),
904
Commands( "UTC_TIMESTAMP", 0, 0, 0, ""),
905
Commands( "VALUE", 0, 0, 0, ""),
906
Commands( "VALUES", 0, 0, 0, ""),
907
Commands( "VARBINARY", 0, 0, 0, ""),
908
Commands( "VARCHAR", 0, 0, 0, ""),
909
Commands( "VARCHARACTER", 0, 0, 0, ""),
910
Commands( "VARIABLES", 0, 0, 0, ""),
911
Commands( "VARYING", 0, 0, 0, ""),
912
Commands( "WARNINGS", 0, 0, 0, ""),
913
Commands( "WEEK", 0, 0, 0, ""),
914
Commands( "WHEN", 0, 0, 0, ""),
915
Commands( "WHERE", 0, 0, 0, ""),
916
Commands( "WHILE", 0, 0, 0, ""),
917
Commands( "VIEW", 0, 0, 0, ""),
918
Commands( "WITH", 0, 0, 0, ""),
919
Commands( "WORK", 0, 0, 0, ""),
920
Commands( "WRITE", 0, 0, 0, ""),
921
Commands( "XOR", 0, 0, 0, ""),
922
Commands( "XA", 0, 0, 0, ""),
923
Commands( "YEAR", 0, 0, 0, ""),
924
Commands( "YEAR_MONTH", 0, 0, 0, ""),
925
Commands( "ZEROFILL", 0, 0, 0, ""),
926
Commands( "ABS", 0, 0, 0, ""),
927
Commands( "ACOS", 0, 0, 0, ""),
928
Commands( "ADDDATE", 0, 0, 0, ""),
929
Commands( "AREA", 0, 0, 0, ""),
930
Commands( "ASIN", 0, 0, 0, ""),
931
Commands( "ASBINARY", 0, 0, 0, ""),
932
Commands( "ASTEXT", 0, 0, 0, ""),
933
Commands( "ATAN", 0, 0, 0, ""),
934
Commands( "ATAN2", 0, 0, 0, ""),
935
Commands( "BENCHMARK", 0, 0, 0, ""),
936
Commands( "BIN", 0, 0, 0, ""),
937
Commands( "BIT_OR", 0, 0, 0, ""),
938
Commands( "BIT_AND", 0, 0, 0, ""),
939
Commands( "BIT_XOR", 0, 0, 0, ""),
940
Commands( "CAST", 0, 0, 0, ""),
941
Commands( "CEIL", 0, 0, 0, ""),
942
Commands( "CEILING", 0, 0, 0, ""),
943
Commands( "CENTROID", 0, 0, 0, ""),
944
Commands( "CHAR_LENGTH", 0, 0, 0, ""),
945
Commands( "CHARACTER_LENGTH", 0, 0, 0, ""),
946
Commands( "COALESCE", 0, 0, 0, ""),
947
Commands( "COERCIBILITY", 0, 0, 0, ""),
948
Commands( "COMPRESS", 0, 0, 0, ""),
949
Commands( "CONCAT", 0, 0, 0, ""),
950
Commands( "CONCAT_WS", 0, 0, 0, ""),
951
Commands( "CONNECTION_ID", 0, 0, 0, ""),
952
Commands( "CONV", 0, 0, 0, ""),
953
Commands( "CONVERT_TZ", 0, 0, 0, ""),
954
Commands( "COUNT", 0, 0, 0, ""),
955
Commands( "COS", 0, 0, 0, ""),
956
Commands( "COT", 0, 0, 0, ""),
957
Commands( "CRC32", 0, 0, 0, ""),
958
Commands( "CROSSES", 0, 0, 0, ""),
959
Commands( "CURDATE", 0, 0, 0, ""),
960
Commands( "DATE_ADD", 0, 0, 0, ""),
961
Commands( "DATEDIFF", 0, 0, 0, ""),
962
Commands( "DATE_FORMAT", 0, 0, 0, ""),
963
Commands( "DATE_SUB", 0, 0, 0, ""),
964
Commands( "DAYNAME", 0, 0, 0, ""),
965
Commands( "DAYOFMONTH", 0, 0, 0, ""),
966
Commands( "DAYOFWEEK", 0, 0, 0, ""),
967
Commands( "DAYOFYEAR", 0, 0, 0, ""),
968
Commands( "DECODE", 0, 0, 0, ""),
969
Commands( "DEGREES", 0, 0, 0, ""),
970
Commands( "DES_ENCRYPT", 0, 0, 0, ""),
971
Commands( "DES_DECRYPT", 0, 0, 0, ""),
972
Commands( "DIMENSION", 0, 0, 0, ""),
973
Commands( "DISJOINT", 0, 0, 0, ""),
974
Commands( "ELT", 0, 0, 0, ""),
975
Commands( "ENCODE", 0, 0, 0, ""),
976
Commands( "ENCRYPT", 0, 0, 0, ""),
977
Commands( "ENDPOINT", 0, 0, 0, ""),
978
Commands( "ENVELOPE", 0, 0, 0, ""),
979
Commands( "EQUALS", 0, 0, 0, ""),
980
Commands( "EXTERIORRING", 0, 0, 0, ""),
981
Commands( "EXTRACT", 0, 0, 0, ""),
982
Commands( "EXP", 0, 0, 0, ""),
983
Commands( "EXPORT_SET", 0, 0, 0, ""),
984
Commands( "FIELD", 0, 0, 0, ""),
985
Commands( "FIND_IN_SET", 0, 0, 0, ""),
986
Commands( "FLOOR", 0, 0, 0, ""),
987
Commands( "FORMAT", 0, 0, 0, ""),
988
Commands( "FOUND_ROWS", 0, 0, 0, ""),
989
Commands( "FROM_DAYS", 0, 0, 0, ""),
990
Commands( "FROM_UNIXTIME", 0, 0, 0, ""),
991
Commands( "GET_LOCK", 0, 0, 0, ""),
992
Commands( "GLENGTH", 0, 0, 0, ""),
993
Commands( "GREATEST", 0, 0, 0, ""),
994
Commands( "GROUP_CONCAT", 0, 0, 0, ""),
995
Commands( "GROUP_UNIQUE_USERS", 0, 0, 0, ""),
996
Commands( "HEX", 0, 0, 0, ""),
997
Commands( "IFNULL", 0, 0, 0, ""),
998
Commands( "INSTR", 0, 0, 0, ""),
999
Commands( "INTERIORRINGN", 0, 0, 0, ""),
1000
Commands( "INTERSECTS", 0, 0, 0, ""),
1001
Commands( "ISCLOSED", 0, 0, 0, ""),
1002
Commands( "ISEMPTY", 0, 0, 0, ""),
1003
Commands( "ISNULL", 0, 0, 0, ""),
1004
Commands( "IS_FREE_LOCK", 0, 0, 0, ""),
1005
Commands( "IS_USED_LOCK", 0, 0, 0, ""),
1006
Commands( "LAST_INSERT_ID", 0, 0, 0, ""),
1007
Commands( "ISSIMPLE", 0, 0, 0, ""),
1008
Commands( "LAST_DAY", 0, 0, 0, ""),
1009
Commands( "LCASE", 0, 0, 0, ""),
1010
Commands( "LEAST", 0, 0, 0, ""),
1011
Commands( "LENGTH", 0, 0, 0, ""),
1012
Commands( "LN", 0, 0, 0, ""),
1013
Commands( "LOAD_FILE", 0, 0, 0, ""),
1014
Commands( "LOCATE", 0, 0, 0, ""),
1015
Commands( "LOG", 0, 0, 0, ""),
1016
Commands( "LOG2", 0, 0, 0, ""),
1017
Commands( "LOG10", 0, 0, 0, ""),
1018
Commands( "LOWER", 0, 0, 0, ""),
1019
Commands( "LPAD", 0, 0, 0, ""),
1020
Commands( "LTRIM", 0, 0, 0, ""),
1021
Commands( "MAKE_SET", 0, 0, 0, ""),
1022
Commands( "MAKEDATE", 0, 0, 0, ""),
1023
Commands( "MASTER_POS_WAIT", 0, 0, 0, ""),
1024
Commands( "MAX", 0, 0, 0, ""),
1025
Commands( "MBRCONTAINS", 0, 0, 0, ""),
1026
Commands( "MBRDISJOINT", 0, 0, 0, ""),
1027
Commands( "MBREQUAL", 0, 0, 0, ""),
1028
Commands( "MBRINTERSECTS", 0, 0, 0, ""),
1029
Commands( "MBROVERLAPS", 0, 0, 0, ""),
1030
Commands( "MBRTOUCHES", 0, 0, 0, ""),
1031
Commands( "MBRWITHIN", 0, 0, 0, ""),
1032
Commands( "MD5", 0, 0, 0, ""),
1033
Commands( "MID", 0, 0, 0, ""),
1034
Commands( "MIN", 0, 0, 0, ""),
1035
Commands( "MONTHNAME", 0, 0, 0, ""),
1036
Commands( "NAME_CONST", 0, 0, 0, ""),
1037
Commands( "NOW", 0, 0, 0, ""),
1038
Commands( "NULLIF", 0, 0, 0, ""),
1039
Commands( "NUMPOINTS", 0, 0, 0, ""),
1040
Commands( "OCTET_LENGTH", 0, 0, 0, ""),
1041
Commands( "OCT", 0, 0, 0, ""),
1042
Commands( "ORD", 0, 0, 0, ""),
1043
Commands( "OVERLAPS", 0, 0, 0, ""),
1044
Commands( "PERIOD_ADD", 0, 0, 0, ""),
1045
Commands( "PERIOD_DIFF", 0, 0, 0, ""),
1046
Commands( "PI", 0, 0, 0, ""),
1047
Commands( "POINTN", 0, 0, 0, ""),
1048
Commands( "POSITION", 0, 0, 0, ""),
1049
Commands( "POW", 0, 0, 0, ""),
1050
Commands( "POWER", 0, 0, 0, ""),
1051
Commands( "QUOTE", 0, 0, 0, ""),
1052
Commands( "RADIANS", 0, 0, 0, ""),
1053
Commands( "RAND", 0, 0, 0, ""),
1054
Commands( "RELEASE_LOCK", 0, 0, 0, ""),
1055
Commands( "REVERSE", 0, 0, 0, ""),
1056
Commands( "ROUND", 0, 0, 0, ""),
1057
Commands( "ROW_COUNT", 0, 0, 0, ""),
1058
Commands( "RPAD", 0, 0, 0, ""),
1059
Commands( "RTRIM", 0, 0, 0, ""),
1060
Commands( "SESSION_USER", 0, 0, 0, ""),
1061
Commands( "SUBDATE", 0, 0, 0, ""),
1062
Commands( "SIGN", 0, 0, 0, ""),
1063
Commands( "SIN", 0, 0, 0, ""),
1064
Commands( "SHA", 0, 0, 0, ""),
1065
Commands( "SHA1", 0, 0, 0, ""),
1066
Commands( "SLEEP", 0, 0, 0, ""),
1067
Commands( "SOUNDEX", 0, 0, 0, ""),
1068
Commands( "SPACE", 0, 0, 0, ""),
1069
Commands( "SQRT", 0, 0, 0, ""),
1070
Commands( "SRID", 0, 0, 0, ""),
1071
Commands( "STARTPOINT", 0, 0, 0, ""),
1072
Commands( "STD", 0, 0, 0, ""),
1073
Commands( "STDDEV", 0, 0, 0, ""),
1074
Commands( "STDDEV_POP", 0, 0, 0, ""),
1075
Commands( "STDDEV_SAMP", 0, 0, 0, ""),
1076
Commands( "STR_TO_DATE", 0, 0, 0, ""),
1077
Commands( "STRCMP", 0, 0, 0, ""),
1078
Commands( "SUBSTR", 0, 0, 0, ""),
1079
Commands( "SUBSTRING", 0, 0, 0, ""),
1080
Commands( "SUBSTRING_INDEX", 0, 0, 0, ""),
1081
Commands( "SUM", 0, 0, 0, ""),
1082
Commands( "SYSDATE", 0, 0, 0, ""),
1083
Commands( "SYSTEM_USER", 0, 0, 0, ""),
1084
Commands( "TAN", 0, 0, 0, ""),
1085
Commands( "TIME_FORMAT", 0, 0, 0, ""),
1086
Commands( "TO_DAYS", 0, 0, 0, ""),
1087
Commands( "TOUCHES", 0, 0, 0, ""),
1088
Commands( "TRIM", 0, 0, 0, ""),
1089
Commands( "UCASE", 0, 0, 0, ""),
1090
Commands( "UNCOMPRESS", 0, 0, 0, ""),
1091
Commands( "UNCOMPRESSED_LENGTH", 0, 0, 0, ""),
1092
Commands( "UNHEX", 0, 0, 0, ""),
1093
Commands( "UNIQUE_USERS", 0, 0, 0, ""),
1094
Commands( "UNIX_TIMESTAMP", 0, 0, 0, ""),
1095
Commands( "UPPER", 0, 0, 0, ""),
1096
Commands( "UUID", 0, 0, 0, ""),
1097
Commands( "VARIANCE", 0, 0, 0, ""),
1098
Commands( "VAR_POP", 0, 0, 0, ""),
1099
Commands( "VAR_SAMP", 0, 0, 0, ""),
1100
Commands( "VERSION", 0, 0, 0, ""),
1101
Commands( "WEEKDAY", 0, 0, 0, ""),
1102
Commands( "WEEKOFYEAR", 0, 0, 0, ""),
1103
Commands( "WITHIN", 0, 0, 0, ""),
1104
Commands( "X", 0, 0, 0, ""),
1105
Commands( "Y", 0, 0, 0, ""),
1106
Commands( "YEARWEEK", 0, 0, 0, ""),
316
{ "ACTION", 0, 0, 0, ""},
317
{ "ADD", 0, 0, 0, ""},
318
{ "AFTER", 0, 0, 0, ""},
319
{ "AGAINST", 0, 0, 0, ""},
320
{ "AGGREGATE", 0, 0, 0, ""},
321
{ "ALL", 0, 0, 0, ""},
322
{ "ALGORITHM", 0, 0, 0, ""},
323
{ "ALTER", 0, 0, 0, ""},
324
{ "ANALYZE", 0, 0, 0, ""},
325
{ "AND", 0, 0, 0, ""},
326
{ "ANY", 0, 0, 0, ""},
327
{ "AS", 0, 0, 0, ""},
328
{ "ASC", 0, 0, 0, ""},
329
{ "ASCII", 0, 0, 0, ""},
330
{ "ASENSITIVE", 0, 0, 0, ""},
331
{ "AUTO_INCREMENT", 0, 0, 0, ""},
332
{ "AVG", 0, 0, 0, ""},
333
{ "AVG_ROW_LENGTH", 0, 0, 0, ""},
334
{ "BACKUP", 0, 0, 0, ""},
335
{ "BDB", 0, 0, 0, ""},
336
{ "BEFORE", 0, 0, 0, ""},
337
{ "BEGIN", 0, 0, 0, ""},
338
{ "BERKELEYDB", 0, 0, 0, ""},
339
{ "BETWEEN", 0, 0, 0, ""},
340
{ "BIGINT", 0, 0, 0, ""},
341
{ "BINARY", 0, 0, 0, ""},
342
{ "BINLOG", 0, 0, 0, ""},
343
{ "BIT", 0, 0, 0, ""},
344
{ "BLOB", 0, 0, 0, ""},
345
{ "BOOL", 0, 0, 0, ""},
346
{ "BOOLEAN", 0, 0, 0, ""},
347
{ "BOTH", 0, 0, 0, ""},
348
{ "BTREE", 0, 0, 0, ""},
349
{ "BY", 0, 0, 0, ""},
350
{ "BYTE", 0, 0, 0, ""},
351
{ "CACHE", 0, 0, 0, ""},
352
{ "CALL", 0, 0, 0, ""},
353
{ "CASCADE", 0, 0, 0, ""},
354
{ "CASCADED", 0, 0, 0, ""},
355
{ "CASE", 0, 0, 0, ""},
356
{ "CHAIN", 0, 0, 0, ""},
357
{ "CHANGE", 0, 0, 0, ""},
358
{ "CHANGED", 0, 0, 0, ""},
359
{ "CHAR", 0, 0, 0, ""},
360
{ "CHARACTER", 0, 0, 0, ""},
361
{ "CHARSET", 0, 0, 0, ""},
362
{ "CHECK", 0, 0, 0, ""},
363
{ "CHECKSUM", 0, 0, 0, ""},
364
{ "CIPHER", 0, 0, 0, ""},
365
{ "CLIENT", 0, 0, 0, ""},
366
{ "CLOSE", 0, 0, 0, ""},
367
{ "CODE", 0, 0, 0, ""},
368
{ "COLLATE", 0, 0, 0, ""},
369
{ "COLLATION", 0, 0, 0, ""},
370
{ "COLUMN", 0, 0, 0, ""},
371
{ "COLUMNS", 0, 0, 0, ""},
372
{ "COMMENT", 0, 0, 0, ""},
373
{ "COMMIT", 0, 0, 0, ""},
374
{ "COMMITTED", 0, 0, 0, ""},
375
{ "COMPACT", 0, 0, 0, ""},
376
{ "COMPRESSED", 0, 0, 0, ""},
377
{ "CONCURRENT", 0, 0, 0, ""},
378
{ "CONDITION", 0, 0, 0, ""},
379
{ "CONNECTION", 0, 0, 0, ""},
380
{ "CONSISTENT", 0, 0, 0, ""},
381
{ "CONSTRAINT", 0, 0, 0, ""},
382
{ "CONTAINS", 0, 0, 0, ""},
383
{ "CONTINUE", 0, 0, 0, ""},
384
{ "CONVERT", 0, 0, 0, ""},
385
{ "CREATE", 0, 0, 0, ""},
386
{ "CROSS", 0, 0, 0, ""},
387
{ "CUBE", 0, 0, 0, ""},
388
{ "CURRENT_DATE", 0, 0, 0, ""},
389
{ "CURRENT_TIMESTAMP", 0, 0, 0, ""},
390
{ "CURRENT_USER", 0, 0, 0, ""},
391
{ "CURSOR", 0, 0, 0, ""},
392
{ "DATA", 0, 0, 0, ""},
393
{ "DATABASE", 0, 0, 0, ""},
394
{ "DATABASES", 0, 0, 0, ""},
395
{ "DATE", 0, 0, 0, ""},
396
{ "DATETIME", 0, 0, 0, ""},
397
{ "DAY", 0, 0, 0, ""},
398
{ "DAY_HOUR", 0, 0, 0, ""},
399
{ "DAY_MICROSECOND", 0, 0, 0, ""},
400
{ "DAY_MINUTE", 0, 0, 0, ""},
401
{ "DAY_SECOND", 0, 0, 0, ""},
402
{ "DEALLOCATE", 0, 0, 0, ""},
403
{ "DEC", 0, 0, 0, ""},
404
{ "DECIMAL", 0, 0, 0, ""},
405
{ "DECLARE", 0, 0, 0, ""},
406
{ "DEFAULT", 0, 0, 0, ""},
407
{ "DEFINER", 0, 0, 0, ""},
408
{ "DELAYED", 0, 0, 0, ""},
409
{ "DELAY_KEY_WRITE", 0, 0, 0, ""},
410
{ "DELETE", 0, 0, 0, ""},
411
{ "DESC", 0, 0, 0, ""},
412
{ "DESCRIBE", 0, 0, 0, ""},
413
{ "DES_KEY_FILE", 0, 0, 0, ""},
414
{ "DETERMINISTIC", 0, 0, 0, ""},
415
{ "DIRECTORY", 0, 0, 0, ""},
416
{ "DISABLE", 0, 0, 0, ""},
417
{ "DISCARD", 0, 0, 0, ""},
418
{ "DISTINCT", 0, 0, 0, ""},
419
{ "DISTINCTROW", 0, 0, 0, ""},
420
{ "DIV", 0, 0, 0, ""},
421
{ "DO", 0, 0, 0, ""},
422
{ "DOUBLE", 0, 0, 0, ""},
423
{ "DROP", 0, 0, 0, ""},
424
{ "DUAL", 0, 0, 0, ""},
425
{ "DUMPFILE", 0, 0, 0, ""},
426
{ "DUPLICATE", 0, 0, 0, ""},
427
{ "DYNAMIC", 0, 0, 0, ""},
428
{ "EACH", 0, 0, 0, ""},
429
{ "ELSE", 0, 0, 0, ""},
430
{ "ELSEIF", 0, 0, 0, ""},
431
{ "ENABLE", 0, 0, 0, ""},
432
{ "ENCLOSED", 0, 0, 0, ""},
433
{ "END", 0, 0, 0, ""},
434
{ "ENGINE", 0, 0, 0, ""},
435
{ "ENGINES", 0, 0, 0, ""},
436
{ "ENUM", 0, 0, 0, ""},
437
{ "ERRORS", 0, 0, 0, ""},
438
{ "ESCAPE", 0, 0, 0, ""},
439
{ "ESCAPED", 0, 0, 0, ""},
440
{ "EVENTS", 0, 0, 0, ""},
441
{ "EXECUTE", 0, 0, 0, ""},
442
{ "EXISTS", 0, 0, 0, ""},
443
{ "EXIT", 0, 0, 0, ""},
444
{ "EXPANSION", 0, 0, 0, ""},
445
{ "EXPLAIN", 0, 0, 0, ""},
446
{ "EXTENDED", 0, 0, 0, ""},
447
{ "FALSE", 0, 0, 0, ""},
448
{ "FAST", 0, 0, 0, ""},
449
{ "FETCH", 0, 0, 0, ""},
450
{ "FIELDS", 0, 0, 0, ""},
451
{ "FILE", 0, 0, 0, ""},
452
{ "FIRST", 0, 0, 0, ""},
453
{ "FIXED", 0, 0, 0, ""},
454
{ "FLOAT", 0, 0, 0, ""},
455
{ "FLOAT4", 0, 0, 0, ""},
456
{ "FLOAT8", 0, 0, 0, ""},
457
{ "FLUSH", 0, 0, 0, ""},
458
{ "FOR", 0, 0, 0, ""},
459
{ "FORCE", 0, 0, 0, ""},
460
{ "FOREIGN", 0, 0, 0, ""},
461
{ "FOUND", 0, 0, 0, ""},
462
{ "FRAC_SECOND", 0, 0, 0, ""},
463
{ "FROM", 0, 0, 0, ""},
464
{ "FULL", 0, 0, 0, ""},
465
{ "FULLTEXT", 0, 0, 0, ""},
466
{ "FUNCTION", 0, 0, 0, ""},
467
{ "GLOBAL", 0, 0, 0, ""},
468
{ "GRANT", 0, 0, 0, ""},
469
{ "GRANTS", 0, 0, 0, ""},
470
{ "GROUP", 0, 0, 0, ""},
471
{ "HANDLER", 0, 0, 0, ""},
472
{ "HASH", 0, 0, 0, ""},
473
{ "HAVING", 0, 0, 0, ""},
474
{ "HELP", 0, 0, 0, ""},
475
{ "HIGH_PRIORITY", 0, 0, 0, ""},
476
{ "HOSTS", 0, 0, 0, ""},
477
{ "HOUR", 0, 0, 0, ""},
478
{ "HOUR_MICROSECOND", 0, 0, 0, ""},
479
{ "HOUR_MINUTE", 0, 0, 0, ""},
480
{ "HOUR_SECOND", 0, 0, 0, ""},
481
{ "IDENTIFIED", 0, 0, 0, ""},
482
{ "IF", 0, 0, 0, ""},
483
{ "IGNORE", 0, 0, 0, ""},
484
{ "IMPORT", 0, 0, 0, ""},
485
{ "IN", 0, 0, 0, ""},
486
{ "INDEX", 0, 0, 0, ""},
487
{ "INDEXES", 0, 0, 0, ""},
488
{ "INFILE", 0, 0, 0, ""},
489
{ "INNER", 0, 0, 0, ""},
490
{ "INNOBASE", 0, 0, 0, ""},
491
{ "INNODB", 0, 0, 0, ""},
492
{ "INOUT", 0, 0, 0, ""},
493
{ "INSENSITIVE", 0, 0, 0, ""},
494
{ "INSERT", 0, 0, 0, ""},
495
{ "INSERT_METHOD", 0, 0, 0, ""},
496
{ "INT", 0, 0, 0, ""},
497
{ "INT1", 0, 0, 0, ""},
498
{ "INT2", 0, 0, 0, ""},
499
{ "INT3", 0, 0, 0, ""},
500
{ "INT4", 0, 0, 0, ""},
501
{ "INT8", 0, 0, 0, ""},
502
{ "INTEGER", 0, 0, 0, ""},
503
{ "INTERVAL", 0, 0, 0, ""},
504
{ "INTO", 0, 0, 0, ""},
505
{ "IO_THREAD", 0, 0, 0, ""},
506
{ "IS", 0, 0, 0, ""},
507
{ "ISOLATION", 0, 0, 0, ""},
508
{ "ISSUER", 0, 0, 0, ""},
509
{ "ITERATE", 0, 0, 0, ""},
510
{ "INVOKER", 0, 0, 0, ""},
511
{ "JOIN", 0, 0, 0, ""},
512
{ "KEY", 0, 0, 0, ""},
513
{ "KEYS", 0, 0, 0, ""},
514
{ "KILL", 0, 0, 0, ""},
515
{ "LANGUAGE", 0, 0, 0, ""},
516
{ "LAST", 0, 0, 0, ""},
517
{ "LEADING", 0, 0, 0, ""},
518
{ "LEAVE", 0, 0, 0, ""},
519
{ "LEAVES", 0, 0, 0, ""},
520
{ "LEFT", 0, 0, 0, ""},
521
{ "LEVEL", 0, 0, 0, ""},
522
{ "LIKE", 0, 0, 0, ""},
523
{ "LIMIT", 0, 0, 0, ""},
524
{ "LINES", 0, 0, 0, ""},
525
{ "LINESTRING", 0, 0, 0, ""},
526
{ "LOAD", 0, 0, 0, ""},
527
{ "LOCAL", 0, 0, 0, ""},
528
{ "LOCALTIMESTAMP", 0, 0, 0, ""},
529
{ "LOCK", 0, 0, 0, ""},
530
{ "LOCKS", 0, 0, 0, ""},
531
{ "LOGS", 0, 0, 0, ""},
532
{ "LONG", 0, 0, 0, ""},
533
{ "LONGTEXT", 0, 0, 0, ""},
534
{ "LOOP", 0, 0, 0, ""},
535
{ "LOW_PRIORITY", 0, 0, 0, ""},
536
{ "MASTER", 0, 0, 0, ""},
537
{ "MASTER_CONNECT_RETRY", 0, 0, 0, ""},
538
{ "MASTER_HOST", 0, 0, 0, ""},
539
{ "MASTER_LOG_FILE", 0, 0, 0, ""},
540
{ "MASTER_LOG_POS", 0, 0, 0, ""},
541
{ "MASTER_PASSWORD", 0, 0, 0, ""},
542
{ "MASTER_PORT", 0, 0, 0, ""},
543
{ "MASTER_SERVER_ID", 0, 0, 0, ""},
544
{ "MASTER_SSL", 0, 0, 0, ""},
545
{ "MASTER_SSL_CA", 0, 0, 0, ""},
546
{ "MASTER_SSL_CAPATH", 0, 0, 0, ""},
547
{ "MASTER_SSL_CERT", 0, 0, 0, ""},
548
{ "MASTER_SSL_CIPHER", 0, 0, 0, ""},
549
{ "MASTER_SSL_KEY", 0, 0, 0, ""},
550
{ "MASTER_USER", 0, 0, 0, ""},
551
{ "MATCH", 0, 0, 0, ""},
552
{ "MAX_CONNECTIONS_PER_HOUR", 0, 0, 0, ""},
553
{ "MAX_QUERIES_PER_HOUR", 0, 0, 0, ""},
554
{ "MAX_ROWS", 0, 0, 0, ""},
555
{ "MAX_UPDATES_PER_HOUR", 0, 0, 0, ""},
556
{ "MAX_USER_CONNECTIONS", 0, 0, 0, ""},
557
{ "MEDIUM", 0, 0, 0, ""},
558
{ "MEDIUMTEXT", 0, 0, 0, ""},
559
{ "MERGE", 0, 0, 0, ""},
560
{ "MICROSECOND", 0, 0, 0, ""},
561
{ "MIDDLEINT", 0, 0, 0, ""},
562
{ "MIGRATE", 0, 0, 0, ""},
563
{ "MINUTE", 0, 0, 0, ""},
564
{ "MINUTE_MICROSECOND", 0, 0, 0, ""},
565
{ "MINUTE_SECOND", 0, 0, 0, ""},
566
{ "MIN_ROWS", 0, 0, 0, ""},
567
{ "MOD", 0, 0, 0, ""},
568
{ "MODE", 0, 0, 0, ""},
569
{ "MODIFIES", 0, 0, 0, ""},
570
{ "MODIFY", 0, 0, 0, ""},
571
{ "MONTH", 0, 0, 0, ""},
572
{ "MULTILINESTRING", 0, 0, 0, ""},
573
{ "MULTIPOINT", 0, 0, 0, ""},
574
{ "MULTIPOLYGON", 0, 0, 0, ""},
575
{ "MUTEX", 0, 0, 0, ""},
576
{ "NAME", 0, 0, 0, ""},
577
{ "NAMES", 0, 0, 0, ""},
578
{ "NATIONAL", 0, 0, 0, ""},
579
{ "NATURAL", 0, 0, 0, ""},
580
{ "NDB", 0, 0, 0, ""},
581
{ "NDBCLUSTER", 0, 0, 0, ""},
582
{ "NCHAR", 0, 0, 0, ""},
583
{ "NEW", 0, 0, 0, ""},
584
{ "NEXT", 0, 0, 0, ""},
585
{ "NO", 0, 0, 0, ""},
586
{ "NONE", 0, 0, 0, ""},
587
{ "NOT", 0, 0, 0, ""},
588
{ "NO_WRITE_TO_BINLOG", 0, 0, 0, ""},
589
{ "NULL", 0, 0, 0, ""},
590
{ "NUMERIC", 0, 0, 0, ""},
591
{ "NVARCHAR", 0, 0, 0, ""},
592
{ "OFFSET", 0, 0, 0, ""},
593
{ "OLD_PASSWORD", 0, 0, 0, ""},
594
{ "ON", 0, 0, 0, ""},
595
{ "ONE", 0, 0, 0, ""},
596
{ "ONE_SHOT", 0, 0, 0, ""},
597
{ "OPEN", 0, 0, 0, ""},
598
{ "OPTIMIZE", 0, 0, 0, ""},
599
{ "OPTION", 0, 0, 0, ""},
600
{ "OPTIONALLY", 0, 0, 0, ""},
601
{ "OR", 0, 0, 0, ""},
602
{ "ORDER", 0, 0, 0, ""},
603
{ "OUT", 0, 0, 0, ""},
604
{ "OUTER", 0, 0, 0, ""},
605
{ "OUTFILE", 0, 0, 0, ""},
606
{ "PACK_KEYS", 0, 0, 0, ""},
607
{ "PARTIAL", 0, 0, 0, ""},
608
{ "PASSWORD", 0, 0, 0, ""},
609
{ "PHASE", 0, 0, 0, ""},
610
{ "POINT", 0, 0, 0, ""},
611
{ "POLYGON", 0, 0, 0, ""},
612
{ "PRECISION", 0, 0, 0, ""},
613
{ "PREPARE", 0, 0, 0, ""},
614
{ "PREV", 0, 0, 0, ""},
615
{ "PRIMARY", 0, 0, 0, ""},
616
{ "PRIVILEGES", 0, 0, 0, ""},
617
{ "PROCEDURE", 0, 0, 0, ""},
618
{ "PROCESS", 0, 0, 0, ""},
619
{ "PROCESSLIST", 0, 0, 0, ""},
620
{ "PURGE", 0, 0, 0, ""},
621
{ "QUARTER", 0, 0, 0, ""},
622
{ "QUERY", 0, 0, 0, ""},
623
{ "QUICK", 0, 0, 0, ""},
624
{ "READ", 0, 0, 0, ""},
625
{ "READS", 0, 0, 0, ""},
626
{ "REAL", 0, 0, 0, ""},
627
{ "RECOVER", 0, 0, 0, ""},
628
{ "REDUNDANT", 0, 0, 0, ""},
629
{ "REFERENCES", 0, 0, 0, ""},
630
{ "REGEXP", 0, 0, 0, ""},
631
{ "RELAY_LOG_FILE", 0, 0, 0, ""},
632
{ "RELAY_LOG_POS", 0, 0, 0, ""},
633
{ "RELAY_THREAD", 0, 0, 0, ""},
634
{ "RELEASE", 0, 0, 0, ""},
635
{ "RELOAD", 0, 0, 0, ""},
636
{ "RENAME", 0, 0, 0, ""},
637
{ "REPAIR", 0, 0, 0, ""},
638
{ "REPEATABLE", 0, 0, 0, ""},
639
{ "REPLACE", 0, 0, 0, ""},
640
{ "REPLICATION", 0, 0, 0, ""},
641
{ "REPEAT", 0, 0, 0, ""},
642
{ "REQUIRE", 0, 0, 0, ""},
643
{ "RESET", 0, 0, 0, ""},
644
{ "RESTORE", 0, 0, 0, ""},
645
{ "RESTRICT", 0, 0, 0, ""},
646
{ "RESUME", 0, 0, 0, ""},
647
{ "RETURN", 0, 0, 0, ""},
648
{ "RETURNS", 0, 0, 0, ""},
649
{ "REVOKE", 0, 0, 0, ""},
650
{ "RIGHT", 0, 0, 0, ""},
651
{ "RLIKE", 0, 0, 0, ""},
652
{ "ROLLBACK", 0, 0, 0, ""},
653
{ "ROLLUP", 0, 0, 0, ""},
654
{ "ROUTINE", 0, 0, 0, ""},
655
{ "ROW", 0, 0, 0, ""},
656
{ "ROWS", 0, 0, 0, ""},
657
{ "ROW_FORMAT", 0, 0, 0, ""},
658
{ "RTREE", 0, 0, 0, ""},
659
{ "SAVEPOINT", 0, 0, 0, ""},
660
{ "SCHEMA", 0, 0, 0, ""},
661
{ "SCHEMAS", 0, 0, 0, ""},
662
{ "SECOND", 0, 0, 0, ""},
663
{ "SECOND_MICROSECOND", 0, 0, 0, ""},
664
{ "SECURITY", 0, 0, 0, ""},
665
{ "SELECT", 0, 0, 0, ""},
666
{ "SENSITIVE", 0, 0, 0, ""},
667
{ "SEPARATOR", 0, 0, 0, ""},
668
{ "SERIAL", 0, 0, 0, ""},
669
{ "SERIALIZABLE", 0, 0, 0, ""},
670
{ "SESSION", 0, 0, 0, ""},
671
{ "SET", 0, 0, 0, ""},
672
{ "SHARE", 0, 0, 0, ""},
673
{ "SHOW", 0, 0, 0, ""},
674
{ "SHUTDOWN", 0, 0, 0, ""},
675
{ "SIGNED", 0, 0, 0, ""},
676
{ "SIMPLE", 0, 0, 0, ""},
677
{ "SLAVE", 0, 0, 0, ""},
678
{ "SNAPSHOT", 0, 0, 0, ""},
679
{ "SMALLINT", 0, 0, 0, ""},
680
{ "SOME", 0, 0, 0, ""},
681
{ "SONAME", 0, 0, 0, ""},
682
{ "SOUNDS", 0, 0, 0, ""},
683
{ "SPATIAL", 0, 0, 0, ""},
684
{ "SPECIFIC", 0, 0, 0, ""},
685
{ "SQL", 0, 0, 0, ""},
686
{ "SQLEXCEPTION", 0, 0, 0, ""},
687
{ "SQLSTATE", 0, 0, 0, ""},
688
{ "SQLWARNING", 0, 0, 0, ""},
689
{ "SQL_BIG_RESULT", 0, 0, 0, ""},
690
{ "SQL_BUFFER_RESULT", 0, 0, 0, ""},
691
{ "SQL_CACHE", 0, 0, 0, ""},
692
{ "SQL_CALC_FOUND_ROWS", 0, 0, 0, ""},
693
{ "SQL_NO_CACHE", 0, 0, 0, ""},
694
{ "SQL_SMALL_RESULT", 0, 0, 0, ""},
695
{ "SQL_THREAD", 0, 0, 0, ""},
696
{ "SQL_TSI_FRAC_SECOND", 0, 0, 0, ""},
697
{ "SQL_TSI_SECOND", 0, 0, 0, ""},
698
{ "SQL_TSI_MINUTE", 0, 0, 0, ""},
699
{ "SQL_TSI_HOUR", 0, 0, 0, ""},
700
{ "SQL_TSI_DAY", 0, 0, 0, ""},
701
{ "SQL_TSI_WEEK", 0, 0, 0, ""},
702
{ "SQL_TSI_MONTH", 0, 0, 0, ""},
703
{ "SQL_TSI_QUARTER", 0, 0, 0, ""},
704
{ "SQL_TSI_YEAR", 0, 0, 0, ""},
705
{ "SSL", 0, 0, 0, ""},
706
{ "START", 0, 0, 0, ""},
707
{ "STARTING", 0, 0, 0, ""},
708
{ "STATUS", 0, 0, 0, ""},
709
{ "STOP", 0, 0, 0, ""},
710
{ "STORAGE", 0, 0, 0, ""},
711
{ "STRAIGHT_JOIN", 0, 0, 0, ""},
712
{ "STRING", 0, 0, 0, ""},
713
{ "STRIPED", 0, 0, 0, ""},
714
{ "SUBJECT", 0, 0, 0, ""},
715
{ "SUPER", 0, 0, 0, ""},
716
{ "SUSPEND", 0, 0, 0, ""},
717
{ "TABLE", 0, 0, 0, ""},
718
{ "TABLES", 0, 0, 0, ""},
719
{ "TABLESPACE", 0, 0, 0, ""},
720
{ "TEMPORARY", 0, 0, 0, ""},
721
{ "TEMPTABLE", 0, 0, 0, ""},
722
{ "TERMINATED", 0, 0, 0, ""},
723
{ "TEXT", 0, 0, 0, ""},
724
{ "THEN", 0, 0, 0, ""},
725
{ "TIMESTAMP", 0, 0, 0, ""},
726
{ "TIMESTAMPADD", 0, 0, 0, ""},
727
{ "TIMESTAMPDIFF", 0, 0, 0, ""},
728
{ "TINYINT", 0, 0, 0, ""},
729
{ "TINYTEXT", 0, 0, 0, ""},
730
{ "TO", 0, 0, 0, ""},
731
{ "TRAILING", 0, 0, 0, ""},
732
{ "TRANSACTION", 0, 0, 0, ""},
733
{ "TRIGGER", 0, 0, 0, ""},
734
{ "TRIGGERS", 0, 0, 0, ""},
735
{ "TRUE", 0, 0, 0, ""},
736
{ "TRUNCATE", 0, 0, 0, ""},
737
{ "TYPE", 0, 0, 0, ""},
738
{ "TYPES", 0, 0, 0, ""},
739
{ "UNCOMMITTED", 0, 0, 0, ""},
740
{ "UNDEFINED", 0, 0, 0, ""},
741
{ "UNDO", 0, 0, 0, ""},
742
{ "UNICODE", 0, 0, 0, ""},
743
{ "UNION", 0, 0, 0, ""},
744
{ "UNIQUE", 0, 0, 0, ""},
745
{ "UNKNOWN", 0, 0, 0, ""},
746
{ "UNLOCK", 0, 0, 0, ""},
747
{ "UNSIGNED", 0, 0, 0, ""},
748
{ "UNTIL", 0, 0, 0, ""},
749
{ "UPDATE", 0, 0, 0, ""},
750
{ "UPGRADE", 0, 0, 0, ""},
751
{ "USAGE", 0, 0, 0, ""},
752
{ "USE", 0, 0, 0, ""},
753
{ "USER", 0, 0, 0, ""},
754
{ "USER_RESOURCES", 0, 0, 0, ""},
755
{ "USE_FRM", 0, 0, 0, ""},
756
{ "USING", 0, 0, 0, ""},
757
{ "UTC_DATE", 0, 0, 0, ""},
758
{ "UTC_TIMESTAMP", 0, 0, 0, ""},
759
{ "VALUE", 0, 0, 0, ""},
760
{ "VALUES", 0, 0, 0, ""},
761
{ "VARBINARY", 0, 0, 0, ""},
762
{ "VARCHAR", 0, 0, 0, ""},
763
{ "VARCHARACTER", 0, 0, 0, ""},
764
{ "VARIABLES", 0, 0, 0, ""},
765
{ "VARYING", 0, 0, 0, ""},
766
{ "WARNINGS", 0, 0, 0, ""},
767
{ "WEEK", 0, 0, 0, ""},
768
{ "WHEN", 0, 0, 0, ""},
769
{ "WHERE", 0, 0, 0, ""},
770
{ "WHILE", 0, 0, 0, ""},
771
{ "VIEW", 0, 0, 0, ""},
772
{ "WITH", 0, 0, 0, ""},
773
{ "WORK", 0, 0, 0, ""},
774
{ "WRITE", 0, 0, 0, ""},
775
{ "X509", 0, 0, 0, ""},
776
{ "XOR", 0, 0, 0, ""},
777
{ "XA", 0, 0, 0, ""},
778
{ "YEAR", 0, 0, 0, ""},
779
{ "YEAR_MONTH", 0, 0, 0, ""},
780
{ "ZEROFILL", 0, 0, 0, ""},
781
{ "ABS", 0, 0, 0, ""},
782
{ "ACOS", 0, 0, 0, ""},
783
{ "ADDDATE", 0, 0, 0, ""},
784
{ "AES_ENCRYPT", 0, 0, 0, ""},
785
{ "AES_DECRYPT", 0, 0, 0, ""},
786
{ "AREA", 0, 0, 0, ""},
787
{ "ASIN", 0, 0, 0, ""},
788
{ "ASBINARY", 0, 0, 0, ""},
789
{ "ASTEXT", 0, 0, 0, ""},
790
{ "ASWKB", 0, 0, 0, ""},
791
{ "ASWKT", 0, 0, 0, ""},
792
{ "ATAN", 0, 0, 0, ""},
793
{ "ATAN2", 0, 0, 0, ""},
794
{ "BENCHMARK", 0, 0, 0, ""},
795
{ "BIN", 0, 0, 0, ""},
796
{ "BIT_OR", 0, 0, 0, ""},
797
{ "BIT_AND", 0, 0, 0, ""},
798
{ "BIT_XOR", 0, 0, 0, ""},
799
{ "CAST", 0, 0, 0, ""},
800
{ "CEIL", 0, 0, 0, ""},
801
{ "CEILING", 0, 0, 0, ""},
802
{ "CENTROID", 0, 0, 0, ""},
803
{ "CHAR_LENGTH", 0, 0, 0, ""},
804
{ "CHARACTER_LENGTH", 0, 0, 0, ""},
805
{ "COALESCE", 0, 0, 0, ""},
806
{ "COERCIBILITY", 0, 0, 0, ""},
807
{ "COMPRESS", 0, 0, 0, ""},
808
{ "CONCAT", 0, 0, 0, ""},
809
{ "CONCAT_WS", 0, 0, 0, ""},
810
{ "CONNECTION_ID", 0, 0, 0, ""},
811
{ "CONV", 0, 0, 0, ""},
812
{ "CONVERT_TZ", 0, 0, 0, ""},
813
{ "COUNT", 0, 0, 0, ""},
814
{ "COS", 0, 0, 0, ""},
815
{ "COT", 0, 0, 0, ""},
816
{ "CRC32", 0, 0, 0, ""},
817
{ "CROSSES", 0, 0, 0, ""},
818
{ "CURDATE", 0, 0, 0, ""},
819
{ "DATE_ADD", 0, 0, 0, ""},
820
{ "DATEDIFF", 0, 0, 0, ""},
821
{ "DATE_FORMAT", 0, 0, 0, ""},
822
{ "DATE_SUB", 0, 0, 0, ""},
823
{ "DAYNAME", 0, 0, 0, ""},
824
{ "DAYOFMONTH", 0, 0, 0, ""},
825
{ "DAYOFWEEK", 0, 0, 0, ""},
826
{ "DAYOFYEAR", 0, 0, 0, ""},
827
{ "DECODE", 0, 0, 0, ""},
828
{ "DEGREES", 0, 0, 0, ""},
829
{ "DES_ENCRYPT", 0, 0, 0, ""},
830
{ "DES_DECRYPT", 0, 0, 0, ""},
831
{ "DIMENSION", 0, 0, 0, ""},
832
{ "DISJOINT", 0, 0, 0, ""},
833
{ "ELT", 0, 0, 0, ""},
834
{ "ENCODE", 0, 0, 0, ""},
835
{ "ENCRYPT", 0, 0, 0, ""},
836
{ "ENDPOINT", 0, 0, 0, ""},
837
{ "ENVELOPE", 0, 0, 0, ""},
838
{ "EQUALS", 0, 0, 0, ""},
839
{ "EXTERIORRING", 0, 0, 0, ""},
840
{ "EXTRACT", 0, 0, 0, ""},
841
{ "EXP", 0, 0, 0, ""},
842
{ "EXPORT_SET", 0, 0, 0, ""},
843
{ "FIELD", 0, 0, 0, ""},
844
{ "FIND_IN_SET", 0, 0, 0, ""},
845
{ "FLOOR", 0, 0, 0, ""},
846
{ "FORMAT", 0, 0, 0, ""},
847
{ "FOUND_ROWS", 0, 0, 0, ""},
848
{ "FROM_DAYS", 0, 0, 0, ""},
849
{ "FROM_UNIXTIME", 0, 0, 0, ""},
850
{ "GET_LOCK", 0, 0, 0, ""},
851
{ "GLENGTH", 0, 0, 0, ""},
852
{ "GREATEST", 0, 0, 0, ""},
853
{ "GROUP_CONCAT", 0, 0, 0, ""},
854
{ "GROUP_UNIQUE_USERS", 0, 0, 0, ""},
855
{ "HEX", 0, 0, 0, ""},
856
{ "IFNULL", 0, 0, 0, ""},
857
{ "INET_ATON", 0, 0, 0, ""},
858
{ "INET_NTOA", 0, 0, 0, ""},
859
{ "INSTR", 0, 0, 0, ""},
860
{ "INTERIORRINGN", 0, 0, 0, ""},
861
{ "INTERSECTS", 0, 0, 0, ""},
862
{ "ISCLOSED", 0, 0, 0, ""},
863
{ "ISEMPTY", 0, 0, 0, ""},
864
{ "ISNULL", 0, 0, 0, ""},
865
{ "IS_FREE_LOCK", 0, 0, 0, ""},
866
{ "IS_USED_LOCK", 0, 0, 0, ""},
867
{ "LAST_INSERT_ID", 0, 0, 0, ""},
868
{ "ISSIMPLE", 0, 0, 0, ""},
869
{ "LAST_DAY", 0, 0, 0, ""},
870
{ "LCASE", 0, 0, 0, ""},
871
{ "LEAST", 0, 0, 0, ""},
872
{ "LENGTH", 0, 0, 0, ""},
873
{ "LN", 0, 0, 0, ""},
874
{ "LINEFROMTEXT", 0, 0, 0, ""},
875
{ "LINEFROMWKB", 0, 0, 0, ""},
876
{ "LINESTRINGFROMTEXT", 0, 0, 0, ""},
877
{ "LINESTRINGFROMWKB", 0, 0, 0, ""},
878
{ "LOAD_FILE", 0, 0, 0, ""},
879
{ "LOCATE", 0, 0, 0, ""},
880
{ "LOG", 0, 0, 0, ""},
881
{ "LOG2", 0, 0, 0, ""},
882
{ "LOG10", 0, 0, 0, ""},
883
{ "LOWER", 0, 0, 0, ""},
884
{ "LPAD", 0, 0, 0, ""},
885
{ "LTRIM", 0, 0, 0, ""},
886
{ "MAKE_SET", 0, 0, 0, ""},
887
{ "MAKEDATE", 0, 0, 0, ""},
888
{ "MASTER_POS_WAIT", 0, 0, 0, ""},
889
{ "MAX", 0, 0, 0, ""},
890
{ "MBRCONTAINS", 0, 0, 0, ""},
891
{ "MBRDISJOINT", 0, 0, 0, ""},
892
{ "MBREQUAL", 0, 0, 0, ""},
893
{ "MBRINTERSECTS", 0, 0, 0, ""},
894
{ "MBROVERLAPS", 0, 0, 0, ""},
895
{ "MBRTOUCHES", 0, 0, 0, ""},
896
{ "MBRWITHIN", 0, 0, 0, ""},
897
{ "MD5", 0, 0, 0, ""},
898
{ "MID", 0, 0, 0, ""},
899
{ "MIN", 0, 0, 0, ""},
900
{ "MLINEFROMTEXT", 0, 0, 0, ""},
901
{ "MLINEFROMWKB", 0, 0, 0, ""},
902
{ "MPOINTFROMTEXT", 0, 0, 0, ""},
903
{ "MPOINTFROMWKB", 0, 0, 0, ""},
904
{ "MPOLYFROMTEXT", 0, 0, 0, ""},
905
{ "MPOLYFROMWKB", 0, 0, 0, ""},
906
{ "MONTHNAME", 0, 0, 0, ""},
907
{ "MULTILINESTRINGFROMTEXT", 0, 0, 0, ""},
908
{ "MULTILINESTRINGFROMWKB", 0, 0, 0, ""},
909
{ "MULTIPOINTFROMTEXT", 0, 0, 0, ""},
910
{ "MULTIPOINTFROMWKB", 0, 0, 0, ""},
911
{ "MULTIPOLYGONFROMTEXT", 0, 0, 0, ""},
912
{ "MULTIPOLYGONFROMWKB", 0, 0, 0, ""},
913
{ "NAME_CONST", 0, 0, 0, ""},
914
{ "NOW", 0, 0, 0, ""},
915
{ "NULLIF", 0, 0, 0, ""},
916
{ "NUMINTERIORRINGS", 0, 0, 0, ""},
917
{ "NUMPOINTS", 0, 0, 0, ""},
918
{ "OCTET_LENGTH", 0, 0, 0, ""},
919
{ "OCT", 0, 0, 0, ""},
920
{ "ORD", 0, 0, 0, ""},
921
{ "OVERLAPS", 0, 0, 0, ""},
922
{ "PERIOD_ADD", 0, 0, 0, ""},
923
{ "PERIOD_DIFF", 0, 0, 0, ""},
924
{ "PI", 0, 0, 0, ""},
925
{ "POINTFROMTEXT", 0, 0, 0, ""},
926
{ "POINTFROMWKB", 0, 0, 0, ""},
927
{ "POINTN", 0, 0, 0, ""},
928
{ "POLYFROMTEXT", 0, 0, 0, ""},
929
{ "POLYFROMWKB", 0, 0, 0, ""},
930
{ "POLYGONFROMTEXT", 0, 0, 0, ""},
931
{ "POLYGONFROMWKB", 0, 0, 0, ""},
932
{ "POSITION", 0, 0, 0, ""},
933
{ "POW", 0, 0, 0, ""},
934
{ "POWER", 0, 0, 0, ""},
935
{ "QUOTE", 0, 0, 0, ""},
936
{ "RADIANS", 0, 0, 0, ""},
937
{ "RAND", 0, 0, 0, ""},
938
{ "RELEASE_LOCK", 0, 0, 0, ""},
939
{ "REVERSE", 0, 0, 0, ""},
940
{ "ROUND", 0, 0, 0, ""},
941
{ "ROW_COUNT", 0, 0, 0, ""},
942
{ "RPAD", 0, 0, 0, ""},
943
{ "RTRIM", 0, 0, 0, ""},
944
{ "SESSION_USER", 0, 0, 0, ""},
945
{ "SUBDATE", 0, 0, 0, ""},
946
{ "SIGN", 0, 0, 0, ""},
947
{ "SIN", 0, 0, 0, ""},
948
{ "SHA", 0, 0, 0, ""},
949
{ "SHA1", 0, 0, 0, ""},
950
{ "SLEEP", 0, 0, 0, ""},
951
{ "SOUNDEX", 0, 0, 0, ""},
952
{ "SPACE", 0, 0, 0, ""},
953
{ "SQRT", 0, 0, 0, ""},
954
{ "SRID", 0, 0, 0, ""},
955
{ "STARTPOINT", 0, 0, 0, ""},
956
{ "STD", 0, 0, 0, ""},
957
{ "STDDEV", 0, 0, 0, ""},
958
{ "STDDEV_POP", 0, 0, 0, ""},
959
{ "STDDEV_SAMP", 0, 0, 0, ""},
960
{ "STR_TO_DATE", 0, 0, 0, ""},
961
{ "STRCMP", 0, 0, 0, ""},
962
{ "SUBSTR", 0, 0, 0, ""},
963
{ "SUBSTRING", 0, 0, 0, ""},
964
{ "SUBSTRING_INDEX", 0, 0, 0, ""},
965
{ "SUM", 0, 0, 0, ""},
966
{ "SYSDATE", 0, 0, 0, ""},
967
{ "SYSTEM_USER", 0, 0, 0, ""},
968
{ "TAN", 0, 0, 0, ""},
969
{ "TIME_FORMAT", 0, 0, 0, ""},
970
{ "TO_DAYS", 0, 0, 0, ""},
971
{ "TOUCHES", 0, 0, 0, ""},
972
{ "TRIM", 0, 0, 0, ""},
973
{ "UCASE", 0, 0, 0, ""},
974
{ "UNCOMPRESS", 0, 0, 0, ""},
975
{ "UNCOMPRESSED_LENGTH", 0, 0, 0, ""},
976
{ "UNHEX", 0, 0, 0, ""},
977
{ "UNIQUE_USERS", 0, 0, 0, ""},
978
{ "UNIX_TIMESTAMP", 0, 0, 0, ""},
979
{ "UPPER", 0, 0, 0, ""},
980
{ "UUID", 0, 0, 0, ""},
981
{ "VARIANCE", 0, 0, 0, ""},
982
{ "VAR_POP", 0, 0, 0, ""},
983
{ "VAR_SAMP", 0, 0, 0, ""},
984
{ "VERSION", 0, 0, 0, ""},
985
{ "WEEKDAY", 0, 0, 0, ""},
986
{ "WEEKOFYEAR", 0, 0, 0, ""},
987
{ "WITHIN", 0, 0, 0, ""},
990
{ "YEARWEEK", 0, 0, 0, ""},
1107
991
/* end sentinel */
1108
Commands((char *)NULL, 0, 0, 0, "")
992
{ (char *)NULL, 0, 0, 0, ""}
995
static const char *load_default_groups[]= { "drizzle","client",0 };
1112
997
int history_length;
1113
998
static int not_in_history(const char *line);
1114
999
static void initialize_readline (char *name);
1115
1000
static void fix_history(string *final_command);
1117
static Commands *find_command(const char *name,char cmd_name);
1002
static COMMANDS *find_command(const char *name,char cmd_name);
1118
1003
static bool add_line(string *buffer,char *line,char *in_string,
1119
1004
bool *ml_comment);
1120
1005
static void remove_cntrl(string *buffer);