Commit Graph

1507 Commits

Author SHA1 Message Date
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
3ed80be1c4 [parser] restore: support restoring SQL wrapping with TiDB special comments (#1287) 2021-10-09 14:53:23 +08:00
386287d9b4 [parser] Support add/drop attributes for table or partition (#1271) 2021-10-09 14:53:23 +08:00
742f960ce7 [parser] parser: add plan recreator statement (#1278) 2021-10-09 14:53:23 +08:00
217cd12248 [parser] parser: support Oracle translate function (#1283) 2021-10-09 14:53:23 +08:00
276a575804 [parser] Restart statement support (#1267)
Co-authored-by: tangenta <tangenta@126.com>
2021-10-09 14:53:23 +08:00
83a9450089 [parser] Remove useless const AddIndexStr,AddPrimaryKeyStr (#1275)
Signed-off-by: JaySon-Huang <tshent@qq.com>
2021-10-09 14:53:23 +08:00
f2ea640dd6 [parser] .github: migrate ci to GitHub Actions (#1247) 2021-10-09 14:53:23 +08:00
eca248cb71 [parser] Correct typo: s/TslNone/TlsNone/ (#1270) 2021-10-09 14:53:23 +08:00
2dce1398c8 [parser] Fix issue with warning count for error 1068 (#1269)
Closes: #1268
2021-10-09 14:53:23 +08:00
a8fd323ac6 [parser] parser: fix the compatiblity of explain_format (#1262) 2021-10-09 14:53:23 +08:00
c1acf6df1f [parser] parser: ensure NOT NOT EXISTS is the same as EXISTS (#1254) 2021-10-09 14:53:23 +08:00
b7eaefe9db [parser] parser: support alter table force auto_increment (#1261)
* parser: support alter table force auto_increment

* support alter force auto_random_base

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-10-09 14:53:23 +08:00
26bfc00945 [parser] Update dependencies (#1260) 2021-10-09 14:53:23 +08:00
c0fd7427f1 [parser] Add 'HELP' statement support (#1250) 2021-10-09 14:53:23 +08:00
4c25d15dc0 [parser] fix the usage of ODBC style time literal (#1253) 2021-10-09 14:53:23 +08:00
c95be4aaa6 [parser] auth: caching_sha2_password salt fix (#1249)
- a NUL or '$' could get replaced with another NUL or '$'
- Replacement characters didn't get their first bit set to 0 (`&^ 128`)
- The test case used the index number instead of the value of the rune.
2021-10-09 14:53:23 +08:00
4415136781 [parser] auth: check for NUL in caching_sha2_password salt (#1246) 2021-10-09 14:53:23 +08:00