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
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
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
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
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
38bca7abec
[parser] parser: implement Restore for CreateViewStmt ( #139 )
2021-10-09 14:53:23 +08:00
7abc99d6e3
[parser] parser: implement Restore for CreateTableStmt ( #170 )
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
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
779495f792
[parser] parser: change the location of RestoreCtx ( #157 )
2021-10-09 14:53:23 +08:00
2876e287c8
[parser] better error message ( #1 ) ( #133 )
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
999d8a9573
[parser] parser: implement Restore for BeginStmt,CommitStmt,RollbackStmt, AnalyzeTableStmt and LoadStatsStmt ( #144 )
2021-10-09 14:53:23 +08:00
7287ea54b8
[parser] parser: implement Restore for Constraint ( #127 )
2021-10-09 14:53:23 +08:00
ef194ccb59
[parser] parser: implement Restore for RenameTableStmt ( #114 )
2021-10-09 14:53:23 +08:00
433fd2d301
[parser] lexer: recognize "@@system var" and fix start offset of "@user var" ( #112 )
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
023cd7dcfb
[parser] impl Restore of DropTableStmt ( #107 )
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
a8463b6756
[parser] parser: implement Restore for DropStatsStmt ( #97 )
2021-10-09 14:53:23 +08:00
a766069705
[parser] parser: implement Restore for DropIndexStmt ( #83 )
2021-10-09 14:53:23 +08:00
3d7841959f
[parser] parser: add RestoreCtx and change the Node interface ( #78 )
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
112401e071
[parser] ast: implement the Restore function of UseStmt
2021-10-09 14:53:23 +08:00
8a205ccc0a
[parser] *: support AST to SQL text ( #56 )
...
* ast2sql demo
* add SQLSentence
* mock func Restore
* change copyright
* add comment
* add test
* change tidb dependentment
* fix error comment
* use strings.Builder
* fix test
* add error return value for Recoverable
* add error return value for Recoverable
* add error return value for Recoverable
* impl Restore of UnaryOperationExpr
* integrate utils
* switch tidb dependency
* add comment
* add comment
* update unit test
* fix Restore of DatabaseOption
* fix Restore of DatabaseOption
* fix Restore of DatabaseOption
* update unit test
* use errorf
2021-10-09 14:53:23 +08:00
6e9eb8642d
[parser] parser: support disable window function parser ( #60 )
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