Commit Graph

816 Commits

Author SHA1 Message Date
6451bd93ea [parser] parser: implement Restore for BinaryOperation, WhenClause, CaseExpr and ParenthesesExpr (#81) 2021-10-09 14:53:23 +08:00
2ebe4a6713 [parser] parser: update dependencies (#82) 2021-10-09 14:53:23 +08:00
a75b586a76 [parser] parser: implement Restore for BetweenExpr (#71) 2021-10-09 14:53:23 +08:00
cc7fbfb56a [parser] model: add IsAutoIncColUnsigned for TableInfo (#79) 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
1dc030ae16 [parser] parser: implement Restore for TableName (#73) 2021-10-09 14:53:23 +08:00
3fb7739efa [parser] refactor the PR #8619 by introducing the FieldType.Clone() member function (#77) 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
133fda7b1f [parser] parser: optimize restore unit test (#75) 2021-10-09 14:53:23 +08:00
3048ced6b7 [parser] *: add ActionModifyTableCharsetAndCollate to support alter table charset and collate (#14) 2021-10-09 14:53:23 +08:00
46040af3a2 [parser] parser: ast/expressions.go: IsNullExpr (#72) 2021-10-09 14:53:23 +08:00
7c7fca61e3 [parser] parser: implement drop view parse (#67) 2021-10-09 14:53:23 +08:00
55967eb284 [parser] charsert: make collation case insensitive (#66) 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
b3f1c03819 [parser] ast: impl Restore of ColunmNameExpr (#63)
* impl Restore of ColunmNameExpr
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
fd3b6465ca [parser] ast, parser: extract create view parameters to CreateViewStmt (#55) 2021-10-09 14:53:23 +08:00
8a4ff3a5ed [parser] *: add an shell script to make checkout PR branch easier (#59) 2021-10-09 14:53:23 +08:00
c962b11ce3 [parser] ast: change Tso function name to TiDBParseTso (#50) 2021-10-09 14:53:23 +08:00
6a3812e2cd [parser] mysql: fix variable formatting for ErrTruncateWrongValue (#25) 2021-10-09 14:53:23 +08:00
326ba018bd [parser] ast: Fix FrameBound.Accept (#51) 2021-10-09 14:53:23 +08:00
b850cf8ced [parser] mysql: fix message print number verbs (#49) 2021-10-09 14:53:23 +08:00
c7db3238fb [parser] Add test case about format "a % b" (#47) 2021-10-09 14:53:23 +08:00
b9e1bf0af6 [parser] add from_tso function (#48) 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
c66cad2a7e [parser] README: update replace parser version command (#42) 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
e5fb49c9b0 [parser] parser: add driver import check & example (#44) 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
630b7e3207 [parser] circle.yml: added a step to verify parser.go is up-to-date (#36) 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
8c54ae8e22 [parser] model: add isUnsigned for allocator (#34) 2021-10-09 14:53:23 +08:00
027ca88bf7 [parser] README: add Go Report Card and CircleCI Status badge (#35) 2021-10-09 14:53:23 +08:00
c94a71f1fd [parser] parser,ast: fix the TiDB issue #8153 (#27) 2021-10-09 14:53:23 +08:00
5fe32fea5d [parser] parser: fix select field text (#30) 2021-10-09 14:53:23 +08:00
bd8cc65171 [parser] README: fix the format (#28) 2021-10-09 14:53:23 +08:00
ee29b5f005 [parser] update README.md, fix make test, add circle.yml (#23) 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
eb6d7e1783 [parser] mysql: Update sql mode default (#11)
* mysql: Add NO_AUTO_CREATE_USER detection
* mysql: Update Default SQL Mode
* Include No_auto_create_user and only_full_group_by
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
ad9281aa85 [parser] mysql: NO_AUTO_CREATE_USER detect helper function (#10)
* mysql: Add NO_AUTO_CREATE_USER detection
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
a1f4f3efa3 [parser] Makefile: fix 'make test' (#15) 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
2095376b3b [parser] goyacc: fix unstability of generated parser.go (#9) 2021-10-09 14:53:23 +08:00