Commit Graph

979 Commits

Author SHA1 Message Date
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
0b845b621c [parser] ast: add set default role (#266) 2021-10-09 14:53:23 +08:00
6bfe81dce2 [parser] change admin restore table syntax to recover table syntax. (#180) 2021-10-09 14:53:23 +08:00
89bfa28bae [parser] add revoke role (#245) 2021-10-09 14:53:23 +08:00
12d1a3354c [parser] ast: support EXPLAIN FOR CONNECTION (#271) 2021-10-09 14:53:23 +08:00
bb3e01d290 [parser] mysql/charset.go: Add quick path to avoid access map (#248)
Add quick path to avoid access map, we can check the only a few supported charsets first.
2021-10-09 14:53:23 +08:00
b5a1ee3a2f [parser] parser, ast: add ColumnOptionCollate for all column types (#260) 2021-10-09 14:53:23 +08:00
18ba909e44 [parser] model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far (#252)
* model: add MaxShardRowIDBits to table info to record the max ShardRowIDBits be used so far

* address comment
2021-10-09 14:53:23 +08:00
e9db4f1358 [parser] Parser: Support CREATE USER extensions per MySQL 5.7 (#269) 2021-10-09 14:53:23 +08:00
4eae120d0c [parser] types: port 'HasCharset' function from MySQL (#270) 2021-10-09 14:53:23 +08:00
2a2f211cc5 [parser] parser: fix error message for illegal year type definition. (#268) 2021-10-09 14:53:23 +08:00
cc8fcaa47a [parser] model: add FindIndexByName function (#267) 2021-10-09 14:53:23 +08:00
c938f62ea5 [parser] parser: add charset validation (TiDB #4436) (#220)
* Add charset validation in pattern `CharsetName`, and use it in syntax `CONVERT(expr USING transcoding_name)` and `CHAR(N USING charset_name)`.
* Modify `yyLexer` interface to return different types of error.
2021-10-09 14:53:23 +08:00
97c4bafa13 [parser] parser: treat node_id and node_stats as tidb keyword (#263) 2021-10-09 14:53:23 +08:00
88e84f98ea [parser] *: fix type of MaxInt64 (#251) 2021-10-09 14:53:23 +08:00
7b80828042 [parser] update tidb dep version and fix cycle dep in test (#253) 2021-10-09 14:53:23 +08:00
036d077593 [parser] model: increase table and column version (#254) 2021-10-09 14:53:23 +08:00
ebacedc598 [parser] *: skip 'go mod tidy' check in integration test (#250) 2021-10-09 14:53:23 +08:00
389ede704f [parser] ast: add GrantRoleStmt to support GRANT ROLE (#242) 2021-10-09 14:53:23 +08:00
bee7de1fb7 [parser] parser, ast: add SET ROLE support (#228) 2021-10-09 14:53:23 +08:00