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
048bd7d569
[parser] add definition of json_objectagg ( #378 )
2021-10-09 14:53:23 +08:00
f41adcde4c
[parser] parser: add Reload and File privileges ( #708 )
2021-10-09 14:53:23 +08:00
5cfb690491
[parser] Rewrite special comment parser ( #711 )
...
* lexer: added a function to scan version digits
* lexer: removed special comment scanner
Instead, simply strip off '/*!' and the pairing '*/'.
Temporarily disabled handling of /*+ ... */
* lexer: support collecting the entire /*+ ... */ as a single token
This new token has type `hintComment`. The actual hint will be parsed
lazily.
* lexer,yy_parser: move lastErrorAsWarn() from Parser into Scanner
* goyacc: do not allow conflict, support changing parser type name
change the "DO NOT EDIT" line to fit the Go standard
* parser,hintparser: created a new parser just for parsing optimizer hints
deleted all optimizer hint rules from parser.go
refactor the Makefile to support building both parsers (also deleted some
outdated fixup of *parser.go)
* lexer: fix comment parser
* codecov: don't wait for integration test before showing the coverage
* lexer: fix comment parsing again
* hintparser: TiDB still expects `HASH_JOIN(@qb1 foo@qb2)` to be valid :(
* parser,hintparser: provide the true line/column offset in the warnings
cache the hintparser in the main parser to avoid repeated allocation
* lexer: delete unused sqlOffsetInComment()
2021-10-09 14:53:23 +08:00
cd9ed92d53
[parser] distinguish 'convert to' keyword in table option of charset ( #706 )
2021-10-09 14:53:23 +08:00
54c8b68819
[parser] fix rename column rule ( #705 )
2021-10-09 14:53:23 +08:00
ba3ed9535b
[parser] add yacc file formatter ( #701 )
2021-10-09 14:53:23 +08:00
1785397d6d
[parser] Add parsing of window function for aggregate function varpop ( #700 )
2021-10-09 14:53:23 +08:00
9e2eb9d931
[parser] parser: fix panic when MEMORY_QUOTA overflows int64 ( #694 )
2021-10-09 14:53:23 +08:00
935055c937
[parser] make 'language' as unreserved keyword ( #699 )
2021-10-09 14:53:23 +08:00
7af8905dbd
[parser] parser: add log types for flush statements ( #687 )
2021-10-09 14:53:23 +08:00
403a889033
[parser] parser : support drop sequence syntax. ( #680 )
2021-10-09 14:53:23 +08:00
6721fea8cf
[parser] add show create sequence ( #681 )
2021-10-09 14:53:23 +08:00
c6a316f63f
[parser] support require clauses in grant stmt ( #666 )
2021-10-09 14:53:23 +08:00
385d05ce3e
[parser] parser: support syntax for AUTO_RANDOM ( #571 )
2021-10-09 14:53:23 +08:00
526e7683ef
[parser] change sequence unreserved keyword ( #673 )
2021-10-09 14:53:23 +08:00
07751a60e2
[parser] parser: support index advisor ( #667 )
2021-10-09 14:53:23 +08:00
de4291013c
[parser] ddl: add expression index support ( #664 )
...
* done
* update comment
* address comment and add error code
* address comment
* rename
* address comment
* fmt
* address comment
* address comment
2021-10-09 14:53:23 +08:00
f7f50a28a7
[parser] DDL : add create sequence support & compatible with mariaDB except OrReplace. ( #658 )
...
* add create sequence support
* fix conflict
* be compatible with mariaDB
* add SignedNum and reformat indent
* add sequence test
* .
* address comment
* not support orreplace by now
* add sequence ddl
* add ddl restore test
* add : no cycle/no cache/no order
* .
* fix ident
2021-10-09 14:53:23 +08:00
f523233fff
[parser] *: add flashback table syntax ( #611 )
2021-10-09 14:53:23 +08:00
194335f65f
[parser] model: add hidden to ColumnInfo ( #621 )
...
* add hidden
* make codecov happy
* support extended
* clean code
* address comment
* tweak
* address comment
2021-10-09 14:53:23 +08:00
cfabf36c6d
[parser] add hint for (no_)swap_join_inputs ( #652 )
2021-10-09 14:53:23 +08:00
c6e75130e8
[parser] parser: fix tableAlias in DeleteStmt ( #521 )
2021-10-09 14:53:23 +08:00
570f2f00a6
[parser] fix alter table convert to charset default syntax ( #566 )
2021-10-09 14:53:23 +08:00
4760408a32
[parser] parser: support syntax for manage bindings ( #646 )
2021-10-09 14:53:23 +08:00
99d1a794b6
[parser] Add Cloud Spanner style read only transaction ( #610 )
...
* Add Cloud Spanner style read only transaction
* Put non keywords to the right place
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com >
2021-10-09 14:53:23 +08:00
a98bbab0f8
[parser] *: spport primary key ( #617 )
2021-10-09 14:53:23 +08:00
097954ab2d
[parser] parser: support drop specific plan binding ( #620 )
2021-10-09 14:53:23 +08:00
c13460aad7
[parser] support hint for indexMergeJoin and indexHashJoin ( #619 )
2021-10-09 14:53:23 +08:00
cc817e1324
[parser] *: Support full-text search ( #592 )
...
add MATCH(col1,col2,...) AGAINST(expr [search_modifier]) syntax support
2021-10-09 14:53:23 +08:00
9b11c3d2ad
[parser] revert pr 587 failed to parse WHERE / GROUP BY clauses in a SELECT statement without a FROM table ( #597 )
2021-10-09 14:53:23 +08:00
3fe6ed4c13
[parser] parser: support FLUSH LOGS | HOSTS syntax ( #589 )
2021-10-09 14:53:23 +08:00
e879bc5fca
[parser] parser: improve index merge hint ( #590 )
...
* add primary
* add test for primary
2021-10-09 14:53:23 +08:00
d18f635991
[parser] Fixed: failed to parse WHERE / GROUP BY clauses in a SELECT statement without a FROM table ( #587 )
2021-10-09 14:53:23 +08:00
b4395cd5a9
[parser] parser: support database name for optimizer hint ( #586 )
2021-10-09 14:53:23 +08:00
f26c3e85f4
[parser] parser: add support for SHUTDOWN syntax ( #580 )
...
* add support for SHUTDOWN syntax
* add SHUTDOWN privilege syntax
2021-10-09 14:53:23 +08:00
24a0caa4af
[parser] *: suport alter table set flash replica syntax ( #564 )
2021-10-09 14:53:23 +08:00
ef25c58596
[parser] parser : support admin repair table syntax ( #547 )
...
* support admin repair table
* fix comment
* add ddl test
* fix depency
2021-10-09 14:53:23 +08:00
30e9b8f7d9
[parser] fix SET CHARSET | NAMES DEFAULT ( #567 )
...
* fix SET CHARSET | NAMES DEFAULT
* reindent the tab
2021-10-09 14:53:23 +08:00
9d0dae0e58
[parser] parser: add nowait keyword, add for update no wait grammar, and related error… ( #582 )
2021-10-09 14:53:23 +08:00