Commit Graph

998 Commits

Author SHA1 Message Date
d2debf2fdf [parser] parse until eof (#367) 2021-10-09 14:53:23 +08:00
84d13adf9e [parser] parser: fix hint parsing in select /*+ max_execution_time */ 1 (#366) 2021-10-09 14:53:23 +08:00
b720a62b24 [parser] add binary args field to ExecuteStmt (#363) 2021-10-09 14:53:23 +08:00
ac2366a98e [parser] *: add admin cleanup table lock syntax (#323) 2021-10-09 14:53:23 +08:00
cf64b220fe [parser] *: add IF EXISTS and IF NOT EXISTS supported for MariaDB (#337) 2021-10-09 14:53:23 +08:00
08ef2cc316 [parser] *: support syntax for 'admin reload expr_pushdown_blacklist' (#350) 2021-10-09 14:53:23 +08:00
1bf1d8c877 [parser] model: add in union flag (#351)
Signed-off-by: Lonng <heng@lonng.org>
2021-10-09 14:53:23 +08:00
92ba8bb89b [parser] *: support parsing all PARTITION BY syntax (#345) 2021-10-09 14:53:23 +08:00
4dbad06ee8 [parser] *: try to support lock/unlock tables function (#305) 2021-10-09 14:53:23 +08:00
02468bfa24 [parser] add split table ... between ... and syntax (#321) 2021-10-09 14:53:23 +08:00
c3f5479d6b [parser] Fix handling of FLOAT(p), FLOAT(m,d) and DECIMAL(m,0) types esp. w.r.t. Restore() (#311)
* parser: fix handling of FLOAT(p) and FLOAT(m,d) types

* FLOAT(50,4) should not automatically become a DOUBLE, it is just a FLOAT
  shown with 50 digits.
* FLOAT(0) and FLOAT(24) are the alias of the same type FLOAT. There is no
  need to record the Flen.

* types: fix Restore of DECIMAL(m,0) types

* tests: add test cases
2021-10-09 14:53:23 +08:00
e34b3821d9 [parser] add MySQL extension assignment support for VariableAssignment (#346) 2021-10-09 14:53:23 +08:00
e18c1a7731 [parser] ast: add new field in create view stmt (#343) 2021-10-09 14:53:23 +08:00
416bf41862 [parser] mysql: add ErrInvalidJSONPathArrayCell (#240) 2021-10-09 14:53:23 +08:00
9ff76dabcb [parser] Fix several lexer bugs involving special comments (#342)
* lexer: ensure /*! ... */ follow the same SQL mode as original parser
* lexer: forward stmtText() to specialComment parser if exists
* lexer: ensure invalid tokens in optimizer hint won't loop the parser
2021-10-09 14:53:23 +08:00
e8b48ae881 [parser] Parser: Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT (#304)
* Support SQL_BIG_RESULT, SQL_SMALL_RESULT, SQL_BUFFER_RESULT

* update test case

* code formatting

* word wrap
2021-10-09 14:53:23 +08:00
7038c2f560 [parser] add mysql standard error code 1907 (#339) 2021-10-09 14:53:23 +08:00
b68ad8a55e [parser] ast: fix case expression format bug (#338) 2021-10-09 14:53:23 +08:00
6a484a4614 [parser] support keyword OPTIMISTIC and PESSIMISTIC. (#335) 2021-10-09 14:53:23 +08:00
02f2bdc427 [parser] add write conflict error for latch (#334)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-10-09 14:53:23 +08:00
68880d0153 [parser] Support load data ignore replace (#312) 2021-10-09 14:53:23 +08:00
d7ab3d79d4 [parser] errcode.go: Add ErrBadUser (#319) 2021-10-09 14:53:23 +08:00
d62e9e0d5e [parser] update error message of ErrWriteConflict (#329) 2021-10-09 14:53:23 +08:00
bfe813fcb9 [parser] terror: enhance terror FastGen to gen nostack error (#326) 2021-10-09 14:53:23 +08:00
304090faa7 [parser] test: enable coverage when running unit tests (#324)
* test: enable coverage when running unit tests

* README: add codecov badge
2021-10-09 14:53:23 +08:00
2fa7c9076b [parser] parser: support mysql-compatible explain format (#316) 2021-10-09 14:53:23 +08:00
78d1b7f21b [parser] parser: add support for ALTER DATABASE syntax (#318) 2021-10-09 14:53:23 +08:00
7c9cd7df82 [parser] *: Add split index region syntax support. (#297) 2021-10-09 14:53:23 +08:00
824bc91f46 [parser] digester: avoid infinite loop when an invalid token is seen (#313) 2021-10-09 14:53:23 +08:00
e31fda929f [parser] parser: Refine LoadDataStmt (#288)
* Code Refine

* Add multi set test case

* revert test case loss
2021-10-09 14:53:23 +08:00
9a5b162e42 [parser] parser: support SHOW PROFILE syntax (#298) 2021-10-09 14:53:23 +08:00
89e1bfd6ef [parser] mysql: update mysql error code/name for 3146/3069 (#309) 2021-10-09 14:53:23 +08:00
1fa4d04572 [parser] *: fix upper-cased charset and collation name (#301) 2021-10-09 14:53:23 +08:00
bec06d97d6 [parser] Add begin lock syntax for pessimistic transaction. (#307) 2021-10-09 14:53:23 +08:00
b69ad00c7c [parser] parser: check invalid column define option for generated columns (#201)
* parser: add check on column options

* add related tests

* add more tests

* fix ident problems

* fix bug

* Code refine according to reviewer's opinion
2021-10-09 14:53:23 +08:00
64b24c11d0 [parser] charset: add GetSupportedCollations to get only supported collations (#295) 2021-10-09 14:53:23 +08:00
e01e5a2636 [parser] parser: support show analyze status (#292) 2021-10-09 14:53:23 +08:00
a7d5fa8f30 [parser] parser: support incremental analyze (#282) 2021-10-09 14:53:23 +08:00
35f6c88433 [parser] suspend unknown collation id 255 error (#294) 2021-10-09 14:53:23 +08:00
754e089e3f [parser] parser: fix now frac in column option (#214) 2021-10-09 14:53:23 +08:00
568898c8d7 [parser] type/compatibility: fix show create table output of generated column (#235) 2021-10-09 14:53:23 +08:00
1636af258f [parser] *: add "show open tables" support (#291) 2021-10-09 14:53:23 +08:00
5ac172fb58 [parser] *: add table option: pre_split_regions (#287)
* *: add table option: pre_split_resions

* refine code

* add PreSplitRegions in tableInfo

* Update misc.go

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* Update parser.y

Co-Authored-By: crazycs520 <crazycs520@gmail.com>

* address comment

* refine comment
2021-10-09 14:53:23 +08:00
H
1e6b681e72 [parser] improve:GetCharsetDesc (#256) 2021-10-09 14:53:23 +08:00
146b505eef [parser] ast: add role support show grant (#272)
* add option for show grant

* fix tab

* address comment
2021-10-09 14:53:23 +08:00
3417bf3834 [parser] parser: complete Restore for CreateUserStmt (#275) 2021-10-09 14:53:23 +08:00
35067bdff8 [parser] ast: fix misspell (#277) 2021-10-09 14:53:23 +08:00
91319f3063 [parser] parser: refine error messages that are inconsistent with MySQL (#273) 2021-10-09 14:53:23 +08:00
9ca175b8c3 [parser] parser: fix load data syntax (#274) 2021-10-09 14:53:23 +08:00
29b2aa5cab [parser] add write conflict error (#281) 2021-10-09 14:53:23 +08:00