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
6d3f99487a
[parser] parser: implement Restore for FuncCallExpr and AggregateFuncExpr ( #102 )
2021-10-09 14:53:23 +08:00
be5ec7cba2
[parser] ast, mysql: add window function flag and error message ( #76 )
2021-10-09 14:53:23 +08:00
401e9247e5
[parser] parser: implement Restore for Assignment ( #146 )
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
6ecfe817ce
[parser] parser: implement Restore for FrameBound ( #135 )
2021-10-09 14:53:23 +08:00
c0086ecb96
[parser] parser: implement Restore for OnCondition and TableRefsClause ( #132 )
2021-10-09 14:53:23 +08:00
3be13d0e75
[parser] add drop view ddl action ( #131 )
2021-10-09 14:53:23 +08:00
1368c22730
[parser] parser: implement Restore for VariableExpr ( #87 )
...
* ast, opcode: implement Restore for VariableExpr and fix literal string of operator `EQ`
* address comment but still has some problem
* fix test
* add test case
2021-10-09 14:53:23 +08:00
7287ea54b8
[parser] parser: implement Restore for Constraint ( #127 )
2021-10-09 14:53:23 +08:00
17e7f1de3d
[parser] parser: fix GroupByClause.Restore, and add keyword ( #130 )
2021-10-09 14:53:23 +08:00
41bccb6a0f
[parser] parser: implement Restore for HavingClause ( #129 )
2021-10-09 14:53:23 +08:00
a2a8947f8d
[parser] parser: implement Restore for OrderByClause ( #128 )
2021-10-09 14:53:23 +08:00
b7a6c6492a
[parser] parser: implement Restore for PositionExpr, ByItem and GroupByClause ( #125 )
2021-10-09 14:53:23 +08:00
3036851718
[parser] parser: implement Restore for PatternInExpr ( #92 )
2021-10-09 14:53:23 +08:00
8c816f7587
[parser] parser: implement Restore for ColumnPosition ( #110 )
2021-10-09 14:53:23 +08:00
ef194ccb59
[parser] parser: implement Restore for RenameTableStmt ( #114 )
2021-10-09 14:53:23 +08:00
31ac5d0e24
[parser] parser: implement Restore for TableToTable ( #109 )
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