945ffdd56b
[parser] parser: parse the fraction of CURRENT_TIMESTAMP default value ( #211 )
2021-10-09 14:53:23 +08:00
84f9b45d16
[parser] parser: finish the restore function of all ast node ( #206 )
...
* add test
* restore bindings
* restore bindings
* restore ddl
* charset info
* charset info
* fix fmt
* use keyword write charset
* gomod
* gosum
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
01abdb1fbd
[parser] parser: fix lexer that treat 9eTSs as a float ( #208 )
2021-10-09 14:53:23 +08:00
e160c8bba4
[parser] parser: implement Restore for TraceStmt ( #167 )
...
* test cases implemented
* implement suggestions
2021-10-09 14:53:23 +08:00
fee9359019
[parser] support sql digest ( #32 )
2021-10-09 14:53:23 +08:00
3b20f8d27a
[parser] parser: minor fix of #198 ( #203 )
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
13d8ade928
[parser] parser: implement Restore for BinlogStmt, FlushStmt, KillStmt, DoStmt and AdminStmt ( #196 )
2021-10-09 14:53:23 +08:00
86be1ca47c
[parser] parser: implement Restore for VariableAssignment, SetStmt and SetPwdStmt ( #199 )
2021-10-09 14:53:23 +08:00
000ed8dd86
[parser] parser: implement Restore for PrepareStmt ExplainStmt ExecuteStmt Dea… ( #193 )
2021-10-09 14:53:23 +08:00
ac9b7fbb7a
[parser] parser: implement Restore for CreateUserStmt, AlterUserStmt and DropUserStmt ( #197 )
2021-10-09 14:53:23 +08:00
220f759d9a
[parser] parser: don't use hack.String ( #202 )
2021-10-09 14:53:23 +08:00
4e551183f6
[parser] parser: tiny update README.md ( #163 )
2021-10-09 14:53:23 +08:00
5734a23241
[parser] Add PR and Issue templates ( #166 )
...
Copy PR/Issue template from tidb repo and changed a little
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
b5ef73dc57
[parser] parser: implement restore for UpdateStmt ( #190 )
...
* implement restore for UpdateStmt
* add test case for UpdateStmt's restore functionality
* format code
* 1. put comma check at the start of loop;
2. check the errors for the restore of UpdateStmt.List[%d].Column and UpdateStmt.List[%d].Column.Expr;
* clean origin HintName of UpdateStmt.TableHInts
2021-10-09 14:53:23 +08:00
c804203630
[parser] model: add version number to Column ( #183 )
2021-10-09 14:53:23 +08:00
24980bb2dd
[parser] improve syntax error message ( #175 )
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
76e71adca8
[parser] parser: implement Restore for LoadDataStmt ( #184 )
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
08b3170dd6
[parser] parser: implement Restore for ExistsSubqueryExpr ( #126 )
2021-10-09 14:53:23 +08:00
7680e0a912
[parser] fix integration test CI failure
2021-10-09 14:53:23 +08:00
38bca7abec
[parser] parser: implement Restore for CreateViewStmt ( #139 )
2021-10-09 14:53:23 +08:00
59d5883ded
[parser] *: add integration test for CI ( #155 )
2021-10-09 14:53:23 +08:00
7abc99d6e3
[parser] parser: implement Restore for CreateTableStmt ( #170 )
2021-10-09 14:53:23 +08:00
258a637aed
[parser] parser: fix subquery in PatternInExpr.Restore and add tests ( #174 )
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
65596c7eaa
[parser] mysql: add sql mode ALLOW_INVALID_DATES ( #171 )
...
* mysql: add sql mode ALLOW_INVALID_DATES
* add HasAllowInvalidDatesMode
2021-10-09 14:53:23 +08:00
5b5196d5c2
[parser] mysql,terror: add plugin error msg ( #173 )
2021-10-09 14:53:23 +08:00
0e6164a43e
[parser] parser: implement Restore for SelectStmt ( #153 )
2021-10-09 14:53:23 +08:00
c70ba5e716
[parser] parser: implement Restore for CreateIndexStmt ( #150 )
...
* add empty test case
* CreateIndexStmt restore implement
* remove useless function TestCreateIndexStmtRestore
* CreateIndexStmt error add index info
* combine trivial code of CreateIndexStmt.Restore
* add unique index case for CreateIndexStmt.Restore
* merge code from master
2021-10-09 14:53:23 +08:00
32ebbe47c5
[parser] support SQL binding syntax ( #161 )
2021-10-09 14:53:23 +08:00
b47d6e9f4c
[parser] parser: implement Restore for AlterTableStmt and AlterTableSpec ( #154 )
...
* implement AlterTableStmt#Restore.
* implement TableOption#Restore
* implement AlterTableSpec#Restore.
add test cases.
* resolved conversation
* resolved conversation: WritePlainf -> WriteString
* resolved: ctx.Annotate -> ctx.Annotatef
* resolved: merge ctx,WriteKeyWord
* resolved: merge if used else.
* implement PartitionDefinition#restore.
* change error message.
2021-10-09 14:53:23 +08:00
b5e77a1ad8
[parser] parser: implement Restore for InsertStmt ( #168 )
2021-10-09 14:53:23 +08:00
d057e9ebaf
[parser] parser: implement Restore for ColumnOption, FieldType and ColumnDef ( #160 )
2021-10-09 14:53:23 +08:00
ea322cc941
[parser] parser: fix tidb version ( #162 )
2021-10-09 14:53:23 +08:00
cd8ab70fd7
[parser] parser: upload tidb version ( #159 )
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
779495f792
[parser] parser: change the location of RestoreCtx ( #157 )
2021-10-09 14:53:23 +08:00
8a1ddc4029
[parser] mysql: update sql-mode default ( #45 )
...
Change TiDB to use same default as MySQL 5.7
2021-10-09 14:53:23 +08:00
2876e287c8
[parser] better error message ( #1 ) ( #133 )
2021-10-09 14:53:23 +08:00
4597f2d3c8
[parser] parser: implement Restore for FrameClause, PartitionByClause, WindowSpec and WindowFuncExpr ( #143 )
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