Commit Graph

199 Commits

Author SHA1 Message Date
190f905a91 [parser] *: refine split region syntax add split partition table region syntax. (#561) 2021-10-09 14:53:23 +08:00
e691d58da9 [parser] support CREATE VIEW ... UnionStmt (#572) 2021-10-09 14:53:23 +08:00
42243bbd9e [parser] *: support where in admin show statement (#568) 2021-10-09 14:53:23 +08:00
d3b76259b1 [parser] add support for SHOW BUILTINS syntax. (#570) 2021-10-09 14:53:23 +08:00
95b921f113 [parser] parser: add support for STORAGE DEFAULT/DISK/MEMORY in column attributes (#563)
* add support for STORAGE DEFAULT/DISK/MEMORY in column attributes

* ident lines with tab
2021-10-09 14:53:23 +08:00
bca396708d [parser] fix FIXED syntax (#556) 2021-10-09 14:53:23 +08:00
06a9eb80fa [parser] parser: optimize performance (#562) 2021-10-09 14:53:23 +08:00
26d10784e4 [parser] add IGNORE_INDEX hint (#550) 2021-10-09 14:53:23 +08:00
cf56856f63 [parser] parser: fix *TEXT BYTE | ASCII | UNICODE syntax (#536) 2021-10-09 14:53:23 +08:00
dd905d0c38 [parser] parser: fix SET=DEFAULT syntax (#551) 2021-10-09 14:53:23 +08:00
03c0e4cf93 [parser] Parser: support storage engine and VALUE IN MAXVALUE (#542) 2021-10-09 14:53:23 +08:00
a9ac52b528 [parser] fix CONSTRAINT syntax (#548) 2021-10-09 14:53:23 +08:00
dac9156949 [parser] parser: fix SQL_TSI_YEAR column type syntax (#540)
* fix SQL_TSI_YEAR column type syntax

* fix SQL_TSI_YEAR column type syntax
2021-10-09 14:53:23 +08:00
1c25c0c310 [parser] *: add where for show table region syntax (#398) 2021-10-09 14:53:23 +08:00
0f2b95b88f [parser] parser: fix obscure error message in bit(65) column type (#530)
* parser: fix obscure error message in bit(65) column type

* address comment

* format parser.y
2021-10-09 14:53:23 +08:00
5b27268b74 [parser] parser: fix CREATE INDEX .. TYPE syntax (#533) 2021-10-09 14:53:23 +08:00
29110a1670 [parser] parser: replace magic numbers with meaningful names (#531) 2021-10-09 14:53:23 +08:00
1c514a63ca [parser] parser: fix alter_stmt order by syntax (#526) 2021-10-09 14:53:23 +08:00
3ad61223b4 [parser] add support for ALTER TABLE ... ALTER INDEX syntax (#519) 2021-10-09 14:53:23 +08:00
592dc0fc6e [parser] Parser: support WITH PARSER (#524) 2021-10-09 14:53:23 +08:00
2c03dea0b7 [parser] parser: support table option 'UNION' (#523) 2021-10-09 14:53:23 +08:00
7c57e6ca07 [parser] parser: support table option: 'ENCRYPTION' (#520) 2021-10-09 14:53:23 +08:00
931f80b9ee [parser] make begin/commit/rollback/set be traceable (#492) 2021-10-09 14:53:23 +08:00
741cae3cfc [parser] Fix CREATE INDEX .. VISIBLE/INVISIBLE syntax (#518) 2021-10-09 14:53:23 +08:00
580235d94d [parser] Fix DISCARD/IMPORT TABLESPACE syntax (#512) 2021-10-09 14:53:23 +08:00
ece045c976 [parser] add a table hint to access table from a specific type of storage. (#446) 2021-10-09 14:53:23 +08:00
aa86dbe09c [parser] parser: add agg_to_cop hint (#517) 2021-10-09 14:53:23 +08:00
c7bb4e645c [parser] change memory quota hint argument (#513) 2021-10-09 14:53:23 +08:00
68efdd0aee [parser] parser: fix LOCK clause error message (#516) 2021-10-09 14:53:23 +08:00
a344829761 [parser] parser: fix VARCHARACTER, VARYING syntax (#515) 2021-10-09 14:53:23 +08:00
e1690e7912 [parser] parser: support query block in hint (#491) 2021-10-09 14:53:23 +08:00
e0db8ceee7 [parser] Support keyword SERIAL (#481)
* Support keyword `SERIAL`

* Fix fmt

* make fmt happy

* execute gofmt after `make parser`

* revert modification on Makefile
2021-10-09 14:53:23 +08:00
c933f5d710 [parser] add support for ALTER TABLE ... RENAME COLUMN syntax (#504) 2021-10-09 14:53:23 +08:00
34ef8f0215 [parser] parser: support secondary_load and secondary_unload (#496) 2021-10-09 14:53:23 +08:00
08f21e7705 [parser] parser: support ALTER TABLE ALTER CHECK, ALTER TABLE DROP CHECK syntax (#505) 2021-10-09 14:53:23 +08:00
a351d5b33e [parser] parser: fix STATS_AUTO_RECALC syntax (#483) 2021-10-09 14:53:23 +08:00
fe948944f6 [parser] parser: support REORGANIZE PARTITION syntax (#494) 2021-10-09 14:53:23 +08:00
818dfcc40c [parser] Support COLUMN_FORMAT syntax. (#482) 2021-10-09 14:53:23 +08:00
80f1430e35 [parser] parser: support SQL_TSI_* (#495) 2021-10-09 14:53:23 +08:00
345a4fb374 [parser] add support for ALTER TABLE ... RENAME syntax (#489) 2021-10-09 14:53:23 +08:00
ed49f69b7d [parser] fix: add support for TABLE_CHECKSUM (#488) 2021-10-09 14:53:23 +08:00
c039c4773b [parser] Support DROP INDEX ... [ALGORITHM | LOCK] syntax (#484) 2021-10-09 14:53:23 +08:00
c0a8f9ad24 [parser] Support ALTER TABLE REBUILD PARTITION syntax (#469) 2021-10-09 14:53:23 +08:00
bee432281a [parser] parser: Fix CHECK PARTITION syntax (#457) 2021-10-09 14:53:23 +08:00
01b8be921f [parser] add support for [TRUNCATE|DISCARD|IMPORT|OPTIMIZE|REPAIR] PARTITION (#453) 2021-10-09 14:53:23 +08:00
5f6a402230 [parser] parser: Support keyword FIELDS in ALTER TABLE PARTITION BY syntax (#471) 2021-10-09 14:53:23 +08:00
375404f929 [parser] add support for CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX (#454) 2021-10-09 14:53:23 +08:00
db0250c9fc [parser] parser: fix LONG syntax (#473)
* parser: fix LONG syntax

* address comment

Co-Authored-By: leoppro <i@leop.pro>

* resolve conflicts
2021-10-09 14:53:23 +08:00
fadfe65c2e [parser] parser: add several optimizer hints (#424) 2021-10-09 14:53:23 +08:00
90e7b8ecbb [parser] parser.y: fix variable in set, 'set xx.xx = 42' is a valid statement (#441)
* parser.y: fix variable in set, 'set xx.xx = 42' is a valid statement

'xx.xx' is a valid variable name in the set statement

* address comment
2021-10-09 14:53:23 +08:00