Commit Graph

1524 Commits

Author SHA1 Message Date
7700bd2fd5 parser: add "second syntax" for REVOKE (#28738) 2021-10-14 12:03:27 +08:00
c1ec51e049 privilege: add Event and Routine privilege on db level (#28690) 2021-10-13 14:07:27 +08:00
6553404bb2 *: fix regression from FLUSH PRIVILEGES fix (#28736) 2021-10-13 11:19:26 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
9b13dc409c *: Delete parser/.github directory (#28685) 2021-10-11 11:11:25 +08:00
xhe
fc964cf92e [parser]: modify module name
Signed-off-by: xhe <xw897002528@gmail.com>
2021-10-09 14:53:23 +08:00
77e63887f2 [parser] mysql: add references priv in AllColumnPrivs (#1358) 2021-10-09 14:53:23 +08:00
a1ff6f89c9 [parser] Create TMP Tables issue fix (#1359) 2021-10-09 14:53:23 +08:00
83d66f517c [parser] terror: provide a RegisterFinish API (#1352) 2021-10-09 14:53:23 +08:00
e85391f97a [parser] parser: support hexLit and binaryLit for load data lines (#1355) 2021-10-09 14:53:23 +08:00
db3b91a0b6 [parser] *: Support syntax of "CREATE/ALTER DATABASE [DEFAULT] PLACEMENT POLICY ..." (#1351) 2021-10-09 14:53:23 +08:00
99525690f1 [parser] Implement interface for acquiring literal value (#1350) 2021-10-09 14:53:23 +08:00
f4591b0e80 [parser] model: support database placement option and partition placement option (#1342) 2021-10-09 14:53:23 +08:00
bd299b990e [parser] charset: fix Encoding.Encode() and add some tests (#1344) 2021-10-09 14:53:23 +08:00
a68e007548 [parser] mysql: fix MaxDurationWidthWithFsp (#1345)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2021-10-09 14:53:23 +08:00
ba9eff4137 [parser] ast: fix a comment typo (#1343) 2021-10-09 14:53:23 +08:00
0b34158309 [parser] DDL: Add support for placement feature id(/*T![placement]... */). (#1334) 2021-10-09 14:53:23 +08:00
fef35aa8df [parser] add placement rules to schema and partition (#1340)
Co-authored-by: Arenatlx <314806019@qq.com>
2021-10-09 14:53:23 +08:00
77f4e87c01 [parser] ci: remove github action on pull request (#1341) 2021-10-09 14:53:23 +08:00
5e670662e4 [parser] *: support select for update of tables (#1333) 2021-10-09 14:53:23 +08:00
ba105bbd10 [parser] support parsing SQL with encodings other than utf8 (#1312) 2021-10-09 14:53:23 +08:00
8c9c20d3ff [parser] parser: support 'binary' symbol in set statements (#1335) 2021-10-09 14:53:23 +08:00
444f2c51eb [parser] parser: move policyinfo test from tidb to parser (#1330) 2021-10-09 14:53:23 +08:00
7af2a2410e [parser] introduce a new Restore Flag RestoreBracketAroundBinaryOperation (#1332) 2021-10-09 14:53:23 +08:00
726409a242 [parser] Add 'auth_socket' (#1323) 2021-10-09 14:53:23 +08:00
d3cff95f9e [parser] model: move placement policy definition into 2 parser (#1327) 2021-10-09 14:53:23 +08:00
6fe382456a [parser] settings: Delete CODEOWNERS (#1325) 2021-10-09 14:53:23 +08:00
9bf3b7b94c [parser] parser: Create SECURITY.md (#1284) 2021-10-09 14:53:23 +08:00
xhe
e0b131f433 [parser] move placement into not keywords (#1322) 2021-10-09 14:53:23 +08:00
1057322cf7 [parser] parser: support create and alter placement policy (#1313) 2021-10-09 14:53:23 +08:00
d1694fad47 [parser] Grant lock tables issue fix (#1316) 2021-10-09 14:53:23 +08:00
6c3894966a [parser] fix select field again (#1317) 2021-10-09 14:53:23 +08:00
c80d241e9b [parser] fix sel field (#1311) 2021-10-09 14:53:23 +08:00
xhe
0c458aca02 [parser] *: support new placement rules syntax (#1299) 2021-10-09 14:53:23 +08:00
34646f4acb [parser] charset: sort the charset by its name (#1307) 2021-10-09 14:53:23 +08:00
b266e09b30 [parser] charset: clean up some code about charset (#1306) 2021-10-09 14:53:23 +08:00
75e85369d7 [parser] parser: fix some parse error for parenthese subqueries (#1255) 2021-10-09 14:53:23 +08:00
70855c9d0e [parser] Added ReferencesPriv to DB and Table level, see tidb issue 26703 (#1304) 2021-10-09 14:53:23 +08:00
6790f201fc [parser] add drop column with index flag (#1286)
Signed-off-by: ailinkid <314806019@qq.com>
2021-10-09 14:53:23 +08:00
a4d223e7b7 [parser] parser: Support statement 'SHOW PLACEMENT LABELS' (#1303) 2021-10-09 14:53:23 +08:00
763fc87ceb [parser] support missing charset (#1140) (#1301) 2021-10-09 14:53:23 +08:00
97cde8c296 [parser] Model: add the new field to the Job Struct. (#1273) 2021-10-09 14:53:23 +08:00
a34970d9da [parser] goyacc: add a config option to skip text position recording (#1300) 2021-10-09 14:53:23 +08:00
ad06cfff94 [parser] support cast as year syntax (#1293) 2021-10-09 14:53:23 +08:00
51f948424c [parser] parser: support show create placement policy (#1298) 2021-10-09 14:53:23 +08:00
0036788fc0 [parser] add special comments support for index constraints (#1296) 2021-10-09 14:53:23 +08:00
55074f2a24 [parser] parser: support drop placement policy (#1295) 2021-10-09 14:53:23 +08:00
eb90a169f5 [parser] ast/functions: Add built-in function tidb_decode_sql_digests (#1289) 2021-10-09 14:53:23 +08:00
238f29681c [parser] parser: support show placement ... syntax (#1292)
* parser: support `show placement ...` syntax

* Add parser.go
2021-10-09 14:53:23 +08:00
4a911787f3 [parser] change attributes to an unreserved keyword (#1290)
Signed-off-by: Ryan Leung <rleungx@gmail.com>
2021-10-09 14:53:23 +08:00