Commit Graph

92 Commits

Author SHA1 Message Date
568898c8d7 [parser] type/compatibility: fix show create table output of generated column (#235) 2021-10-09 14:53:23 +08:00
1636af258f [parser] *: add "show open tables" support (#291) 2021-10-09 14:53:23 +08:00
5ac172fb58 [parser] *: add table option: pre_split_regions (#287)
* *: add table option: pre_split_resions

* refine code

* add PreSplitRegions in tableInfo

* Update misc.go

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* Update parser.y

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* address comment

* refine comment
2021-10-09 14:53:23 +08:00
146b505eef [parser] ast: add role support show grant (#272)
* add option for show grant

* fix tab

* address comment
2021-10-09 14:53:23 +08:00
3417bf3834 [parser] parser: complete Restore for CreateUserStmt (#275) 2021-10-09 14:53:23 +08:00
91319f3063 [parser] parser: refine error messages that are inconsistent with MySQL (#273) 2021-10-09 14:53:23 +08:00
9ca175b8c3 [parser] parser: fix load data syntax (#274) 2021-10-09 14:53:23 +08:00
0b845b621c [parser] ast: add set default role (#266) 2021-10-09 14:53:23 +08:00
6bfe81dce2 [parser] change admin restore table syntax to recover table syntax. (#180) 2021-10-09 14:53:23 +08:00
89bfa28bae [parser] add revoke role (#245) 2021-10-09 14:53:23 +08:00
12d1a3354c [parser] ast: support EXPLAIN FOR CONNECTION (#271) 2021-10-09 14:53:23 +08:00
b5a1ee3a2f [parser] parser, ast: add ColumnOptionCollate for all column types (#260) 2021-10-09 14:53:23 +08:00
e9db4f1358 [parser] Parser: Support CREATE USER extensions per MySQL 5.7 (#269) 2021-10-09 14:53:23 +08:00
2a2f211cc5 [parser] parser: fix error message for illegal year type definition. (#268) 2021-10-09 14:53:23 +08:00
c938f62ea5 [parser] parser: add charset validation (TiDB #4436) (#220)
* Add charset validation in pattern `CharsetName`, and use it in syntax `CONVERT(expr USING transcoding_name)` and `CHAR(N USING charset_name)`.
* Modify `yyLexer` interface to return different types of error.
2021-10-09 14:53:23 +08:00
97c4bafa13 [parser] parser: treat node_id and node_stats as tidb keyword (#263) 2021-10-09 14:53:23 +08:00
389ede704f [parser] ast: add GrantRoleStmt to support GRANT ROLE (#242) 2021-10-09 14:53:23 +08:00
bee7de1fb7 [parser] parser, ast: add SET ROLE support (#228) 2021-10-09 14:53:23 +08:00
cb5c8effc3 [parser] *: parser subpartition option for 'partition by range columns' (#233) 2021-10-09 14:53:23 +08:00
9d0531f362 [parser] Support update pump or drainer status (#243) 2021-10-09 14:53:23 +08:00
9f37bf3546 [parser] parser: parse 'partition by linear hash' and ignore it (#234) 2021-10-09 14:53:23 +08:00
155441d5b7 [parser] parser: add DROP ROLE support (#237) 2021-10-09 14:53:23 +08:00
3b37352183 [parser] ast: fix the behavior of window function (#236) 2021-10-09 14:53:23 +08:00
7c13429c34 [parser] *: Support ENGINE TokuDB and it's ROW_FORMAT (#222) 2021-10-09 14:53:23 +08:00
87f7f3bb46 [parser] ast: add create role ast structure (#219) 2021-10-09 14:53:23 +08:00
bc337931e8 [parser] parser: add CreateRolePriv and DropRolePriv (#216) 2021-10-09 14:53:23 +08:00
bb2f73677e [parser] parser: add support for show pump/drainer status (#217) 2021-10-09 14:53:23 +08:00
82847ebc2a [parser] parser: add gramma for RBAC (#213) 2021-10-09 14:53:23 +08:00
2f6416e00e [parser] parser: add 'INSTANT' alter algorithm (#93) 2021-10-09 14:53:23 +08:00
945ffdd56b [parser] parser: parse the fraction of CURRENT_TIMESTAMP default value (#211) 2021-10-09 14:53:23 +08:00
d153da93b6 [parser] plugin: add flush tidb plugins [plugin-name,..] support (#209) 2021-10-09 14:53:23 +08:00
79e4b32a81 [parser] parser: support OPTIONALLY keyword in LOAD DATA (#192) 2021-10-09 14:53:23 +08:00
426ab7545c [parser] parser: add CreateViewPriv privilege (#138)
Part of View feature implement, add `CreateViewPriv` privilege to parser and related const.
2021-10-09 14:53:23 +08:00
19ce060290 [parser] implement Restore for DeleteStmt (#189) 2021-10-09 14:53:23 +08:00
bf38350c33 [parser] parser: add show create view grammar (#177) 2021-10-09 14:53:23 +08:00
8f18f5d444 [parser] parser: implement Restore for ShowStmt (#178) 2021-10-09 14:53:23 +08:00
63e969dc26 [parser] parser: fix window function interval expression type (#169) 2021-10-09 14:53:23 +08:00
72dac5368d [parser] support restore table by table name syntax. (#172) 2021-10-09 14:53:23 +08:00
506ce37a7e [parser] support select partition syntax (#164) 2021-10-09 14:53:23 +08:00
32ebbe47c5 [parser] support SQL binding syntax (#161) 2021-10-09 14:53:23 +08:00
32e7a98bab [parser] parser: add show create user syntax (#156) 2021-10-09 14:53:23 +08:00
3283ef24ea [parser] ddl: add admin restore syntax support (#85)
eg: admin restore table by job 11
2021-10-09 14:53:23 +08:00
6bb3bb224c [parser] parser: support show create database if not exists syntax (#148)
See: https://dev.mysql.com/doc/refman/5.7/en/show-create-database.html
2021-10-09 14:53:23 +08:00
6ecfe817ce [parser] parser: implement Restore for FrameBound (#135) 2021-10-09 14:53:23 +08:00
7287ea54b8 [parser] parser: implement Restore for Constraint (#127) 2021-10-09 14:53:23 +08:00
3d72ea20a9 [parser] fix hint handle bug in subquery (#120) 2021-10-09 14:53:23 +08:00
28b04d0276 [parser] parser: remove an outdated comment (#104) 2021-10-09 14:53:23 +08:00
8862bb53b1 [parser] ignore hint when meet unknow token in hint (#80) 2021-10-09 14:53:23 +08:00
631f5c92e4 [parser] parser: implement Restore for IndexOption (#88) 2021-10-09 14:53:23 +08:00
03f56baa05 [parser] parser,ast: parse ALTER TABLE .. TRUNCATE PARTITION (#74) 2021-10-09 14:53:23 +08:00