faaef33f76
[parser] fix: remove warning in parser for rebuild/check/optimize/repair partition ( #920 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
7589d60ccb
[parser] fix: remove warning in "remove partitioning" ( #914 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
3e8e073033
[parser] Add Admin Telemetry Statement ( #908 )
...
* Add telemetry tokens to admin statement
Signed-off-by: Breezewish <me@breeswish.org >
* Merge ADMIN SHOW TELMETRY_ID and ADMIN SHOW TELEMETRY_DATA
Signed-off-by: Breezewish <me@breeswish.org >
2021-10-09 14:53:23 +08:00
b5dafb9522
[parser] parser: fix signed num will parse error when it encounter two's complement min ( #905 )
2021-10-09 14:53:23 +08:00
329541ccbd
[parser] parser: support alter table add/drop/alter constraint ( #899 )
2021-10-09 14:53:23 +08:00
fa0c1896c7
[parser] let function names like a.b() be parsed successfully ( #876 )
2021-10-09 14:53:23 +08:00
027524a52a
[parser] fix charset alias in case function ( #891 )
2021-10-09 14:53:23 +08:00
962f231781
[parser] remove the empty branch in VariableAssignmentList ( #886 )
2021-10-09 14:53:23 +08:00
772de04d12
[parser] ddl: remove warning for constraint and check clause ( #888 )
2021-10-09 14:53:23 +08:00
bc08b269a0
[parser] support require SAN clause ( #877 )
...
* Support `require SAN` clause
* address comments
2021-10-09 14:53:23 +08:00
07de176c89
[parser] parser: support check constraints field ( #871 )
2021-10-09 14:53:23 +08:00
814bac8c12
[parser] parser: support partition selection grammer for the delete statement ( #868 )
2021-10-09 14:53:23 +08:00
7550c31db7
[parser] parser: add new agg function APPROX_COUNT_DISTINCT ( #854 )
...
Signed-off-by: Tong Zhigao <tongzhigao@pingcap.com >
2021-10-09 14:53:23 +08:00
9b457148b7
[parser] support the syntax insert into tbl_name partition ( #856 )
...
* test
* support the syntax insert into tbl_name partition
* address comment
2021-10-09 14:53:23 +08:00
5638d0cf6d
[parser] support show table partition regions ( #855 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2021-10-09 14:53:23 +08:00
cae9d348f2
[parser] Fix set charset statement ( #836 )
2021-10-09 14:53:23 +08:00
56449d183d
[parser] *: Add ddl Action Exchange partition ( #852 )
...
* add action of exchange partition
* delete warn
* recreat parser.go
2021-10-09 14:53:23 +08:00
408cf40985
[parser] Unreserved 8 keywords ( #851 )
...
* parser.y: unreserve 8 keywords
* consistent_test: added an optional test to check against MySQL keywords
2021-10-09 14:53:23 +08:00
bcc3e3b2d2
[parser] parser: support TableOptimizerHints in InsertStmt ( #845 )
2021-10-09 14:53:23 +08:00
9ad0d12a08
[parser] parser: add new ddl action AlterIndexVisibility ( #840 )
2021-10-09 14:53:23 +08:00
359debdae6
[parser] Remove unnecessary .(string) casting and $$ = $1 from parser.y ( #825 )
...
* parser: use <ident> rather than <item> for string-only rules
This get rid of many .(string) casts.
* parser: get rid of unnecessary $$ = $1.
2021-10-09 14:53:23 +08:00
3a347a826b
[parser] parser: introduce a new privilege for the set config statement ( #835 )
2021-10-09 14:53:23 +08:00
e228ea6519
[parser] parser: change CONFIG to an unreserved keyword
2021-10-09 14:53:23 +08:00
6c03d809f2
[parser] Update BACKUP/RESTORE syntax to match the RFC; Added IMPORT statement ( #824 )
...
* *: remove the s3/gcs-specific options
* *: replace the INCREMENTAL UNTIL syntax with LAST_BACKUP = ...
* *: use SHOW BACKUPS rather than SHOW BACKUP
* *: added IMPORT statements and options
2021-10-09 14:53:23 +08:00
96e2a03403
[parser] parser: rename auto rand table option ( #828 )
2021-10-09 14:53:23 +08:00
97e61aea57
[parser] parser: add auto_random table option support ( #823 )
...
* add auto_random table option support
* .
* .
2021-10-09 14:53:23 +08:00
34c18a6ee0
[parser] add some tests for ignore_plan_cache, and correct a bug in parser.y ( #822 )
2021-10-09 14:53:23 +08:00
7f7e9bf8df
[parser] parser: support using dash('-') in config item names ( #821 )
2021-10-09 14:53:23 +08:00
29c3fc2591
[parser] parser: add order by clause in group_concat ( #813 )
2021-10-09 14:53:23 +08:00
f1d610f394
[parser] fix type conversion panic from NUM to int64 ( #809 )
...
* fix conversion panic from NUM to int64
* catch teardown error
* polish int64num description
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
22fc63f328
[parser] parser: add autoid cache option ( #765 )
2021-10-09 14:53:23 +08:00
8598cb86e9
[parser] parser: remove with/without validation unsupported warning in parser ( #795 )
2021-10-09 14:53:23 +08:00
511776d406
[parser] parser: remove sequence order option support ( #796 )
2021-10-09 14:53:23 +08:00
2a7d4fa913
[parser] parser: sequence order option parse warning ( #791 )
2021-10-09 14:53:23 +08:00
6d587c8837
[parser] support 'binary' collation in table option ( #789 )
...
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
2021-10-09 14:53:23 +08:00
c6b2ea9598
[parser] parser: add syntax ADMIN RELOAD BINDINGS ( #787 )
2021-10-09 14:53:23 +08:00
d7b93edc66
[parser] parser: recognize BACKUP SNAPSHOT = TSO in additional to 'TIMESTAMP' ( #782 )
2021-10-09 14:53:23 +08:00
af3a3c6266
[parser] parser: support set config ... and show config ... syntaxes ( #770 )
...
* support 'set config ...' and 'show config ...' syntaxes
* address comments
* address comment
* address comment
2021-10-09 14:53:23 +08:00
58f9e70de7
[parser] *: support parsing BACKUP and RESTORE statements ( #746 )
...
* *: support parsing BACKUP and RESTORE statements
* parser: add SNAPSHOT = 'str' option to BACKUP statement
2021-10-09 14:53:23 +08:00
37c036ca8b
[parser] parser: support group_concat as window function in parser ( #766 )
...
* windown function add
* fix
* make test
* window function support for group_concat
* back mod fiel
2021-10-09 14:53:23 +08:00
b255e058e5
[parser] *: set charset and collate for string literals correctly ( #761 )
...
* done
* address comment
* fix
* revert
2021-10-09 14:53:23 +08:00
e437ae67a8
[parser] parser, ast: accept syntax about chain, release when commit or rollback ( #751 )
...
* add CompletionType in CommitStmt and RollbackStmt
* refine CompletionType in ast
* fix typo in parser.y
* add parser test for ROLLBACK
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
46600d4798
[parser] parser, ast: add SetCollatorExpr ( #749 )
...
This ExprNode is equivalent to the `Item_func_set_collation` in MySQL,
it is used to specify the collation for the result of another
expression.
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
1539b1f3fe
[parser] parser: support the SELECT ... INTO OUTFILE syntax ( #745 )
...
* SELECT OUTFILE
* fix CI
* update
* add more tests
2021-10-09 14:53:23 +08:00
9fe4e83705
[parser] parser: add WEIGHT_STRING() function ( #743 )
2021-10-09 14:53:23 +08:00
b1500ed8d3
[parser] support alter instance reload tls ( #740 )
2021-10-09 14:53:23 +08:00
644e72eba2
[parser] add show table $table_name next_row_id syntax ( #738 )
...
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add syntax
Signed-off-by: zhang555 <4598181@qq.com >
* Merge branch 'master' into mytidb1
Signed-off-by: zhang555 <4598181@qq.com >
# Conflicts:
# parser.go
2021-10-09 14:53:23 +08:00
acf6cb52c0
[parser] *: remove until timestamp syntax in flashback since we not support this ( #733 )
2021-10-09 14:53:23 +08:00
313a0d13e4
[parser] parser: support sequence function & next value for ( #713 )
2021-10-09 14:53:23 +08:00
e633cd8221
[parser] Parser: Database and Table encryption ( #599 #600 ) ( #717 )
...
* add junit test of database encrption
* *: Add warn when database encrypting
* *: add warn of database encryption
* Parser:Database encryption
* Parser: Database encryption ignores case
* *:add unit test of database encryption
* *: Fallback to master version
* parse:More universal implementation
* parser: support table Encryption
* parser:avoid several type conversion
2021-10-09 14:53:23 +08:00