forked from sqldef/sqldef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparser.go
10469 lines (10397 loc) · 297 KB
/
parser.go
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
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by goyacc -o parser.go parser.y. DO NOT EDIT.
//line parser.y:18
package parser
import __yyfmt__ "fmt"
//line parser.y:18
import (
"fmt"
"strings"
)
func setParseTree(yylex interface{}, stmt Statement) {
yylex.(*Tokenizer).ParseTree = stmt
}
func setAllowComments(yylex interface{}, allow bool) {
yylex.(*Tokenizer).AllowComments = allow
}
func setDDL(yylex interface{}, ddl *DDL) {
yylex.(*Tokenizer).partialDDL = ddl
}
func incNesting(yylex interface{}) bool {
yylex.(*Tokenizer).nesting++
if yylex.(*Tokenizer).nesting == 200 {
return true
}
return false
}
func decNesting(yylex interface{}) {
yylex.(*Tokenizer).nesting--
}
// forceEOF forces the lexer to end prematurely. Not all SQL statements
// are supported by the Parser, thus calling forceEOF will make the lexer
// return EOF early.
func forceEOF(yylex interface{}) {
yylex.(*Tokenizer).ForceEOF = true
}
//line parser.y:58
type yySymType struct {
yys int
empty struct{}
statement Statement
selStmt SelectStatement
ddl *DDL
ins *Insert
byt byte
bytes []byte
bytes2 [][]byte
str string
strs []string
selectExprs SelectExprs
selectExpr SelectExpr
columns Columns
partitions Partitions
colName *ColName
newQualifierColName *NewQualifierColName
tableExprs TableExprs
tableExpr TableExpr
joinCondition JoinCondition
tableName TableName
tableNames TableNames
indexHints *IndexHints
expr Expr
exprs Exprs
boolVal BoolVal
boolVals []BoolVal
colTuple ColTuple
values Values
valTuple ValTuple
subquery *Subquery
whens []*When
when *When
orderBy OrderBy
order *Order
limit *Limit
updateExprs UpdateExprs
setExprs SetExprs
updateExpr *UpdateExpr
setExpr *SetExpr
colIdent ColIdent
colIdents []ColIdent
tableIdent TableIdent
convertType *ConvertType
aliasedTableName *AliasedTableExpr
TableSpec *TableSpec
columnType ColumnType
colKeyOpt ColumnKeyOption
optVal *SQLVal
defaultValueOrExpression DefaultValueOrExpression
LengthScaleOption LengthScaleOption
columnDefinition *ColumnDefinition
checkDefinition *CheckDefinition
indexDefinition *IndexDefinition
indexInfo *IndexInfo
indexOption *IndexOption
indexOptions []*IndexOption
indexPartition *IndexPartition
indexColumn IndexColumn
indexColumns []IndexColumn
indexColumnsOrExpression IndexColumnsOrExpression
foreignKeyDefinition *ForeignKeyDefinition
partDefs []*PartitionDefinition
partDef *PartitionDefinition
partSpec *PartitionSpec
vindexParam VindexParam
vindexParams []VindexParam
showFilter *ShowFilter
sequence *Sequence
blockStatement []Statement
localVariable *LocalVariable
localVariables []*LocalVariable
arrayConstructor *ArrayConstructor
arrayElements ArrayElements
arrayElement ArrayElement
tableOptions map[string]string
overExpr *OverExpr
partitionBy PartitionBy
partition *Partition
}
const LEX_ERROR = 57346
const UNION = 57347
const SELECT = 57348
const STREAM = 57349
const INSERT = 57350
const UPDATE = 57351
const DELETE = 57352
const FROM = 57353
const WHERE = 57354
const GROUP = 57355
const HAVING = 57356
const ORDER = 57357
const BY = 57358
const LIMIT = 57359
const OFFSET = 57360
const FOR = 57361
const DECLARE = 57362
const ALL = 57363
const DISTINCT = 57364
const AS = 57365
const EXISTS = 57366
const ASC = 57367
const DESC = 57368
const INTO = 57369
const DUPLICATE = 57370
const DEFAULT = 57371
const SRID = 57372
const SET = 57373
const LOCK = 57374
const KEYS = 57375
const ROWID = 57376
const STRICT = 57377
const VALUES = 57378
const LAST_INSERT_ID = 57379
const NEXT = 57380
const VALUE = 57381
const SHARE = 57382
const MODE = 57383
const SQL_NO_CACHE = 57384
const SQL_CACHE = 57385
const JOIN = 57386
const STRAIGHT_JOIN = 57387
const LEFT = 57388
const RIGHT = 57389
const INNER = 57390
const OUTER = 57391
const CROSS = 57392
const NATURAL = 57393
const USE = 57394
const FORCE = 57395
const ON = 57396
const USING = 57397
const ID = 57398
const HEX = 57399
const STRING = 57400
const UNICODE_STRING = 57401
const INTEGRAL = 57402
const FLOAT = 57403
const HEXNUM = 57404
const VALUE_ARG = 57405
const LIST_ARG = 57406
const COMMENT = 57407
const COMMENT_KEYWORD = 57408
const BIT_LITERAL = 57409
const NULL = 57410
const TRUE = 57411
const FALSE = 57412
const OFF = 57413
const MAX = 57414
const OR = 57415
const AND = 57416
const NOT = 57417
const BETWEEN = 57418
const CASE = 57419
const WHEN = 57420
const THEN = 57421
const ELSE = 57422
const END = 57423
const LE = 57424
const GE = 57425
const NE = 57426
const NULL_SAFE_EQUAL = 57427
const IS = 57428
const LIKE = 57429
const REGEXP = 57430
const IN = 57431
const POSIX_REGEX = 57432
const POSIX_REGEX_CI = 57433
const POSIX_NOT_REGEX = 57434
const POSIX_NOT_REGEX_CI = 57435
const SHIFT_LEFT = 57436
const SHIFT_RIGHT = 57437
const DIV = 57438
const MOD = 57439
const UNARY = 57440
const COLLATE = 57441
const BINARY = 57442
const UNDERSCORE_BINARY = 57443
const INTERVAL = 57444
const JSON_EXTRACT_OP = 57445
const JSON_UNQUOTE_EXTRACT_OP = 57446
const CREATE = 57447
const ALTER = 57448
const DROP = 57449
const RENAME = 57450
const ANALYZE = 57451
const ADD = 57452
const SCHEMA = 57453
const TABLE = 57454
const INDEX = 57455
const MATERIALIZED = 57456
const VIEW = 57457
const TO = 57458
const IGNORE = 57459
const IF = 57460
const PRIMARY = 57461
const COLUMN = 57462
const CONSTRAINT = 57463
const REFERENCES = 57464
const SPATIAL = 57465
const FULLTEXT = 57466
const FOREIGN = 57467
const KEY_BLOCK_SIZE = 57468
const POLICY = 57469
const WHILE = 57470
const UNIQUE = 57471
const KEY = 57472
const SHOW = 57473
const DESCRIBE = 57474
const EXPLAIN = 57475
const DATE = 57476
const ESCAPE = 57477
const REPAIR = 57478
const OPTIMIZE = 57479
const TRUNCATE = 57480
const MAXVALUE = 57481
const PARTITION = 57482
const REORGANIZE = 57483
const LESS = 57484
const THAN = 57485
const PROCEDURE = 57486
const TRIGGER = 57487
const TYPE = 57488
const VINDEX = 57489
const VINDEXES = 57490
const STATUS = 57491
const VARIABLES = 57492
const RESTRICT = 57493
const CASCADE = 57494
const NO = 57495
const ACTION = 57496
const PERMISSIVE = 57497
const RESTRICTIVE = 57498
const PUBLIC = 57499
const CURRENT_USER = 57500
const SESSION_USER = 57501
const PAD_INDEX = 57502
const FILLFACTOR = 57503
const IGNORE_DUP_KEY = 57504
const STATISTICS_NORECOMPUTE = 57505
const STATISTICS_INCREMENTAL = 57506
const ALLOW_ROW_LOCKS = 57507
const ALLOW_PAGE_LOCKS = 57508
const BEFORE = 57509
const AFTER = 57510
const EACH = 57511
const ROW = 57512
const SCROLL = 57513
const CURSOR = 57514
const OPEN = 57515
const CLOSE = 57516
const FETCH = 57517
const PRIOR = 57518
const FIRST = 57519
const LAST = 57520
const DEALLOCATE = 57521
const INSTEAD = 57522
const OF = 57523
const DEFERRABLE = 57524
const INITIALLY = 57525
const IMMEDIATE = 57526
const DEFERRED = 57527
const CONCURRENTLY = 57528
const SQL = 57529
const SECURITY = 57530
const BEGIN = 57531
const START = 57532
const TRANSACTION = 57533
const COMMIT = 57534
const ROLLBACK = 57535
const BIT = 57536
const TINYINT = 57537
const SMALLINT = 57538
const SMALLSERIAL = 57539
const MEDIUMINT = 57540
const INT = 57541
const INTEGER = 57542
const SERIAL = 57543
const BIGINT = 57544
const BIGSERIAL = 57545
const INTNUM = 57546
const REAL = 57547
const DOUBLE = 57548
const PRECISION = 57549
const FLOAT_TYPE = 57550
const DECIMAL = 57551
const NUMERIC = 57552
const SMALLMONEY = 57553
const MONEY = 57554
const TIME = 57555
const TIMESTAMP = 57556
const DATETIME = 57557
const YEAR = 57558
const DATETIMEOFFSET = 57559
const DATETIME2 = 57560
const SMALLDATETIME = 57561
const CHAR = 57562
const VARCHAR = 57563
const VARYING = 57564
const BOOL = 57565
const CHARACTER = 57566
const VARBINARY = 57567
const NCHAR = 57568
const NVARCHAR = 57569
const NTEXT = 57570
const UUID = 57571
const TEXT = 57572
const TINYTEXT = 57573
const MEDIUMTEXT = 57574
const LONGTEXT = 57575
const CITEXT = 57576
const BLOB = 57577
const TINYBLOB = 57578
const MEDIUMBLOB = 57579
const LONGBLOB = 57580
const JSON = 57581
const JSONB = 57582
const ENUM = 57583
const GEOMETRY = 57584
const POINT = 57585
const LINESTRING = 57586
const POLYGON = 57587
const GEOMETRYCOLLECTION = 57588
const MULTIPOINT = 57589
const MULTILINESTRING = 57590
const MULTIPOLYGON = 57591
const VARIADIC = 57592
const ARRAY = 57593
const NOW = 57594
const GETDATE = 57595
const BPCHAR = 57596
const TEXT_PATTERN_OPS = 57597
const NULLX = 57598
const AUTO_INCREMENT = 57599
const APPROXNUM = 57600
const SIGNED = 57601
const UNSIGNED = 57602
const ZEROFILL = 57603
const ZONE = 57604
const AUTOINCREMENT = 57605
const DATABASES = 57606
const TABLES = 57607
const VITESS_KEYSPACES = 57608
const VITESS_SHARDS = 57609
const VITESS_TABLETS = 57610
const VSCHEMA_TABLES = 57611
const EXTENDED = 57612
const FULL = 57613
const PROCESSLIST = 57614
const NAMES = 57615
const CHARSET = 57616
const GLOBAL = 57617
const SESSION = 57618
const ISOLATION = 57619
const LEVEL = 57620
const READ = 57621
const WRITE = 57622
const ONLY = 57623
const REPEATABLE = 57624
const COMMITTED = 57625
const UNCOMMITTED = 57626
const SERIALIZABLE = 57627
const NEW = 57628
const CONCAT_NULL_YIELDS_NULL = 57629
const CURSOR_CLOSE_ON_COMMIT = 57630
const QUOTED_IDENTIFIER = 57631
const ARITHABORT = 57632
const FMTONLY = 57633
const NOCOUNT = 57634
const NOEXEC = 57635
const NUMERIC_ROUNDABORT = 57636
const ANSI_DEFAULTS = 57637
const ANSI_NULL_DFLT_OFF = 57638
const ANSI_NULL_DFLT_ON = 57639
const ANSI_NULLS = 57640
const ANSI_PADDING = 57641
const ANSI_WARNINGS = 57642
const FORCEPLAN = 57643
const SHOWPLAN_ALL = 57644
const SHOWPLAN_TEXT = 57645
const SHOWPLAN_XML = 57646
const IMPLICIT_TRANSACTIONS = 57647
const REMOTE_PROC_TRANSACTIONS = 57648
const XACT_ABORT = 57649
const CURRENT_TIMESTAMP = 57650
const DATABASE = 57651
const CURRENT_DATE = 57652
const CURRENT_TIME = 57653
const LOCALTIME = 57654
const LOCALTIMESTAMP = 57655
const UTC_DATE = 57656
const UTC_TIME = 57657
const UTC_TIMESTAMP = 57658
const REPLACE = 57659
const CONVERT = 57660
const CAST = 57661
const SUBSTR = 57662
const SUBSTRING = 57663
const GROUP_CONCAT = 57664
const SEPARATOR = 57665
const INHERIT = 57666
const LEAD = 57667
const LAG = 57668
const MATCH = 57669
const AGAINST = 57670
const BOOLEAN = 57671
const LANGUAGE = 57672
const WITH = 57673
const WITHOUT = 57674
const PARSER = 57675
const QUERY = 57676
const EXPANSION = 57677
const UNUSED = 57678
const VIRTUAL = 57679
const STORED = 57680
const GENERATED = 57681
const ALWAYS = 57682
const IDENTITY = 57683
const SEQUENCE = 57684
const INCREMENT = 57685
const MINVALUE = 57686
const CACHE = 57687
const CYCLE = 57688
const OWNED = 57689
const NONE = 57690
const CLUSTERED = 57691
const NONCLUSTERED = 57692
const REPLICATION = 57693
const COLUMNSTORE = 57694
const INCLUDE = 57695
const HOLDLOCK = 57696
const NOLOCK = 57697
const NOWAIT = 57698
const PAGLOCK = 57699
const ROWLOCK = 57700
const TABLELOCK = 57701
const DEFINER = 57702
const INVOKER = 57703
const TYPECAST = 57704
const CHECK = 57705
const OVER = 57706
var yyToknames = [...]string{
"$end",
"error",
"$unk",
"LEX_ERROR",
"UNION",
"SELECT",
"STREAM",
"INSERT",
"UPDATE",
"DELETE",
"FROM",
"WHERE",
"GROUP",
"HAVING",
"ORDER",
"BY",
"LIMIT",
"OFFSET",
"FOR",
"DECLARE",
"ALL",
"DISTINCT",
"AS",
"EXISTS",
"ASC",
"DESC",
"INTO",
"DUPLICATE",
"DEFAULT",
"SRID",
"SET",
"LOCK",
"KEYS",
"ROWID",
"STRICT",
"VALUES",
"LAST_INSERT_ID",
"NEXT",
"VALUE",
"SHARE",
"MODE",
"SQL_NO_CACHE",
"SQL_CACHE",
"JOIN",
"STRAIGHT_JOIN",
"LEFT",
"RIGHT",
"INNER",
"OUTER",
"CROSS",
"NATURAL",
"USE",
"FORCE",
"ON",
"USING",
"'('",
"','",
"')'",
"ID",
"HEX",
"STRING",
"UNICODE_STRING",
"INTEGRAL",
"FLOAT",
"HEXNUM",
"VALUE_ARG",
"LIST_ARG",
"COMMENT",
"COMMENT_KEYWORD",
"BIT_LITERAL",
"NULL",
"TRUE",
"FALSE",
"OFF",
"MAX",
"OR",
"AND",
"NOT",
"'!'",
"BETWEEN",
"CASE",
"WHEN",
"THEN",
"ELSE",
"END",
"'='",
"'<'",
"'>'",
"LE",
"GE",
"NE",
"NULL_SAFE_EQUAL",
"IS",
"LIKE",
"REGEXP",
"IN",
"POSIX_REGEX",
"POSIX_REGEX_CI",
"POSIX_NOT_REGEX",
"POSIX_NOT_REGEX_CI",
"'|'",
"'&'",
"SHIFT_LEFT",
"SHIFT_RIGHT",
"'+'",
"'-'",
"'*'",
"'/'",
"DIV",
"'%'",
"MOD",
"'^'",
"'~'",
"UNARY",
"COLLATE",
"BINARY",
"UNDERSCORE_BINARY",
"INTERVAL",
"'.'",
"JSON_EXTRACT_OP",
"JSON_UNQUOTE_EXTRACT_OP",
"CREATE",
"ALTER",
"DROP",
"RENAME",
"ANALYZE",
"ADD",
"SCHEMA",
"TABLE",
"INDEX",
"MATERIALIZED",
"VIEW",
"TO",
"IGNORE",
"IF",
"PRIMARY",
"COLUMN",
"CONSTRAINT",
"REFERENCES",
"SPATIAL",
"FULLTEXT",
"FOREIGN",
"KEY_BLOCK_SIZE",
"POLICY",
"WHILE",
"UNIQUE",
"KEY",
"SHOW",
"DESCRIBE",
"EXPLAIN",
"DATE",
"ESCAPE",
"REPAIR",
"OPTIMIZE",
"TRUNCATE",
"MAXVALUE",
"PARTITION",
"REORGANIZE",
"LESS",
"THAN",
"PROCEDURE",
"TRIGGER",
"TYPE",
"VINDEX",
"VINDEXES",
"STATUS",
"VARIABLES",
"RESTRICT",
"CASCADE",
"NO",
"ACTION",
"PERMISSIVE",
"RESTRICTIVE",
"PUBLIC",
"CURRENT_USER",
"SESSION_USER",
"PAD_INDEX",
"FILLFACTOR",
"IGNORE_DUP_KEY",
"STATISTICS_NORECOMPUTE",
"STATISTICS_INCREMENTAL",
"ALLOW_ROW_LOCKS",
"ALLOW_PAGE_LOCKS",
"BEFORE",
"AFTER",
"EACH",
"ROW",
"SCROLL",
"CURSOR",
"OPEN",
"CLOSE",
"FETCH",
"PRIOR",
"FIRST",
"LAST",
"DEALLOCATE",
"INSTEAD",
"OF",
"DEFERRABLE",
"INITIALLY",
"IMMEDIATE",
"DEFERRED",
"CONCURRENTLY",
"SQL",
"SECURITY",
"BEGIN",
"START",
"TRANSACTION",
"COMMIT",
"ROLLBACK",
"BIT",
"TINYINT",
"SMALLINT",
"SMALLSERIAL",
"MEDIUMINT",
"INT",
"INTEGER",
"SERIAL",
"BIGINT",
"BIGSERIAL",
"INTNUM",
"REAL",
"DOUBLE",
"PRECISION",
"FLOAT_TYPE",
"DECIMAL",
"NUMERIC",
"SMALLMONEY",
"MONEY",
"TIME",
"TIMESTAMP",
"DATETIME",
"YEAR",
"DATETIMEOFFSET",
"DATETIME2",
"SMALLDATETIME",
"CHAR",
"VARCHAR",
"VARYING",
"BOOL",
"CHARACTER",
"VARBINARY",
"NCHAR",
"NVARCHAR",
"NTEXT",
"UUID",
"TEXT",
"TINYTEXT",
"MEDIUMTEXT",
"LONGTEXT",
"CITEXT",
"BLOB",
"TINYBLOB",
"MEDIUMBLOB",
"LONGBLOB",
"JSON",
"JSONB",
"ENUM",
"GEOMETRY",
"POINT",
"LINESTRING",
"POLYGON",
"GEOMETRYCOLLECTION",
"MULTIPOINT",
"MULTILINESTRING",
"MULTIPOLYGON",
"VARIADIC",
"ARRAY",
"NOW",
"GETDATE",
"BPCHAR",
"TEXT_PATTERN_OPS",
"NULLX",
"AUTO_INCREMENT",
"APPROXNUM",
"SIGNED",
"UNSIGNED",
"ZEROFILL",
"ZONE",
"AUTOINCREMENT",
"DATABASES",
"TABLES",
"VITESS_KEYSPACES",
"VITESS_SHARDS",
"VITESS_TABLETS",
"VSCHEMA_TABLES",
"EXTENDED",
"FULL",
"PROCESSLIST",
"NAMES",
"CHARSET",
"GLOBAL",
"SESSION",
"ISOLATION",
"LEVEL",
"READ",
"WRITE",
"ONLY",
"REPEATABLE",
"COMMITTED",
"UNCOMMITTED",
"SERIALIZABLE",
"NEW",
"CONCAT_NULL_YIELDS_NULL",
"CURSOR_CLOSE_ON_COMMIT",
"QUOTED_IDENTIFIER",
"ARITHABORT",
"FMTONLY",
"NOCOUNT",
"NOEXEC",
"NUMERIC_ROUNDABORT",
"ANSI_DEFAULTS",
"ANSI_NULL_DFLT_OFF",
"ANSI_NULL_DFLT_ON",
"ANSI_NULLS",
"ANSI_PADDING",
"ANSI_WARNINGS",
"FORCEPLAN",
"SHOWPLAN_ALL",
"SHOWPLAN_TEXT",
"SHOWPLAN_XML",
"IMPLICIT_TRANSACTIONS",
"REMOTE_PROC_TRANSACTIONS",
"XACT_ABORT",
"CURRENT_TIMESTAMP",
"DATABASE",
"CURRENT_DATE",
"CURRENT_TIME",
"LOCALTIME",
"LOCALTIMESTAMP",
"UTC_DATE",
"UTC_TIME",
"UTC_TIMESTAMP",
"REPLACE",
"CONVERT",
"CAST",
"SUBSTR",
"SUBSTRING",
"GROUP_CONCAT",
"SEPARATOR",
"INHERIT",
"LEAD",
"LAG",
"MATCH",
"AGAINST",
"BOOLEAN",
"LANGUAGE",
"WITH",
"WITHOUT",
"PARSER",
"QUERY",
"EXPANSION",
"UNUSED",
"VIRTUAL",
"STORED",
"GENERATED",
"ALWAYS",
"IDENTITY",
"SEQUENCE",
"INCREMENT",
"MINVALUE",
"CACHE",
"CYCLE",
"OWNED",
"NONE",
"CLUSTERED",
"NONCLUSTERED",
"REPLICATION",
"COLUMNSTORE",
"INCLUDE",
"HOLDLOCK",
"NOLOCK",
"NOWAIT",
"PAGLOCK",
"ROWLOCK",
"TABLELOCK",
"DEFINER",
"INVOKER",
"TYPECAST",
"CHECK",
"OVER",
"';'",
"'['",
"']'",
}
var yyStatenames = [...]string{}
const yyEofCode = 1
const yyErrCode = 2
const yyInitialStackSize = 16
//line yacctab:1
var yyExca = [...]int16{
-1, 1,
1, -1,
-2, 0,
-1, 3,
5, 26,
-2, 4,
-1, 29,
130, 414,
-2, 166,
-1, 35,
166, 522,
167, 522,
-2, 512,
-1, 281,
119, 912,
-2, 908,
-1, 282,
119, 913,
-2, 909,
-1, 283,
119, 914,
-2, 256,
-1, 325,
268, 923,
-2, 801,
-1, 359,
86, 1164,
-2, 86,
-1, 360,
86, 1114,
-2, 87,
-1, 366,
86, 1093,
-2, 881,
-1, 368,
86, 1138,
-2, 883,
-1, 630,
268, 923,
-2, 550,
-1, 680,
268, 923,
-2, 550,
-1, 710,
55, 40,
57, 40,
-2, 42,
-1, 742,
116, 1088,
251, 1088,
257, 1088,
-2, 293,
-1, 743,
116, 1089,
251, 1089,
257, 1089,
-2, 294,
-1, 744,
251, 1091,
257, 1091,
-2, 328,
-1, 745,
251, 1092,
257, 1092,
-2, 328,
-1, 746,
251, 1193,
257, 1193,
-2, 335,
-1, 747,
251, 1139,
257, 1139,
-2, 328,
-1, 748,
251, 1144,
257, 1144,
-2, 335,
-1, 749,
116, 1142,
251, 1142,
257, 1142,
-2, 300,
-1, 751,
116, 1192,
251, 1192,
257, 1192,
-2, 335,
-1, 752,
251, 1178,
257, 1178,
-2, 348,
-1, 753,
251, 1184,
257, 1184,
-2, 348,
-1, 754,
251, 1132,
257, 1132,
-2, 348,
-1, 755,
251, 1128,
257, 1128,
-2, 348,
-1, 757,
116, 1087,
251, 1087,
257, 1087,
-2, 309,
-1, 758,
116, 1182,
251, 1182,
257, 1182,
-2, 310,
-1, 759,
116, 1130,