Commit Graph

655 Commits

Author SHA1 Message Date
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
3bd933ed08 [parser] parser: implement Restore for PrivElem, GrantStmt and RevokeStmt (#198) 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
7c7fca61e3 [parser] parser: implement drop view parse (#67) 2021-10-09 14:53:23 +08:00
7507d986f9 [parser] *: support new aggregation function var_pop and var_samp (#53) 2021-10-09 14:53:23 +08:00
fd3b6465ca [parser] ast, parser: extract create view parameters to CreateViewStmt (#55) 2021-10-09 14:53:23 +08:00
1846343179 [parser] parser,ast: support alter table add partition partitions by hash partitioned table syntax (#41)
* support alter table add partition partitions by hash syntax
2021-10-09 14:53:23 +08:00
fa3239e982 [parser] parser: SetText for trace statement and set default format to json (#46) 2021-10-09 14:53:23 +08:00
1b27e9e11e [parser] parser: support window function ast (#37) 2021-10-09 14:53:23 +08:00
87917e47b4 [parser] parser,ast: fix create table partition by hash syntax (#33) 2021-10-09 14:53:23 +08:00
16d599c1e4 [parser] union: fix union dual table order by (#22) 2021-10-09 14:53:23 +08:00
5fe32fea5d [parser] parser: fix select field text (#30) 2021-10-09 14:53:23 +08:00
e18cfdc62b [parser] parser: support window function grammar (#21) 2021-10-09 14:53:23 +08:00
9cf30372a0 [parser] Revert "parser,ast: fix the TiDB issue #8153 (#20)" (#24) 2021-10-09 14:53:23 +08:00
53c43f7259 [parser] *: support for the statement of "admin show tableName next row id" (#19) 2021-10-09 14:53:23 +08:00
4924685876 [parser] parser,ast: fix the TiDB issue #8153 (#20) 2021-10-09 14:53:23 +08:00
8d82156a1c [parser] parser: support identifiers for window function (#18) 2021-10-09 14:53:23 +08:00
6f2c7111c4 [parser] *: change default charset from utf8 to utf8mb4 (#13) 2021-10-09 14:53:23 +08:00
df45c95cec [parser] parser: support grammar use index(primary) without backquote 2021-10-09 14:53:23 +08:00
e7578634a3 [parser] ci 2021-10-09 14:53:23 +08:00
c270f55405 [parser] *: move github.com/pingcap/tidb/parser here (#1) 2021-10-09 14:53:23 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
50eb73f24a parser: support := in the set syntax (#8018)
According to MySQL document, `set` use the = assignment operator,
but the := assignment operator is also permitted
2018-10-24 13:27:58 +08:00
bd08b0bc70 *: make parser package dependency as small as possible (#7989) 2018-10-24 13:19:10 +08:00
25118db843 *: move ast.NewValueExpr to standalone parser_driver package (#7952)
Make the ast package get rid of the dependency of types.Datum
2018-10-19 19:37:55 +08:00
4de888757d parser: fix bug empty string in "ESCAPED BY" subclause of "FIELDS" cause panic (#7880) 2018-10-14 08:36:24 +08:00
7229b32a25 *: support auto analyze partition table (#7789) 2018-10-12 20:57:59 +08:00
d21f294393 *: make explain support explain anaylze (#7827) 2018-10-12 20:01:19 +08:00