Commit Graph

47 Commits

Author SHA1 Message Date
xhe
07d0b2d845 planner: forbid prepared stale select in txn (#25375) 2021-06-15 14:30:37 +08:00
9f8175743f *: refine some error messages (#24767) 2021-06-03 21:14:26 +08:00
79669921ff ddl: add region and split compatibility for temporary table (#24684) 2021-05-25 13:17:33 +08:00
542da5d60b *: prepare errors for CTE (#24763) 2021-05-20 06:03:40 +08:00
e40f8c0881 *: fix revoke statement for CURRENT_USER() and refine error message (#24052)
* *: fix revoke statement for CURRENT_USER() and refine error message
2021-05-12 16:40:58 +08:00
eb2b0ca182 ddl: grant nonexistent user/role incompatible error (#23853) 2021-04-17 00:37:51 +08:00
4072172c05 *: add security enhanced mode part 1 (#23978) 2021-04-15 09:51:51 +08:00
90d02b2eed *: add support for dynamic privileges (#22778) 2021-04-01 00:17:24 +08:00
3641cd4fe0 executor: fix split table with large integers (#21277) 2021-03-15 16:18:56 +08:00
c4f398948c *: add infoschema client errors (#22382) 2021-03-11 19:06:55 +08:00
c1b8347425 statistics: add a test case which builds global-stats on different versions of partition-stats (#23231) 2021-03-11 14:14:58 +08:00
b42a6f449a statistics: add test for analyze single partition (#23167) 2021-03-08 19:58:55 +08:00
550ca8eaeb statistics: enables global-level stats to be generated in fast analyze mode (#22931) 2021-03-01 16:40:50 +08:00
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +08:00
57eef1333b server, sessionctx: add multi statement workaround (#22351) 2021-01-21 15:14:58 +08:00
1a9852f85f *: redact some error code, part(3/3) (#21866) 2020-12-19 18:21:34 +08:00
8792bf862e server: redact some error code, part(1/3) (#21864) 2020-12-18 19:08:34 +08:00
dd3087ffb9 server: redact some error code, part(2/3) (#20591) 2020-12-18 18:45:04 +08:00
608cc51d27 types: report error for json object with key length >= 65536 (#21779) 2020-12-16 16:53:35 +08:00
49b926ede7 planner: check for only_full_group_by in ORDER BY and HAVING (#21216) 2020-12-14 14:33:17 +08:00
986b149917 planner: report error when ORDER BY conflicts with DISTINCT (#21286) 2020-12-11 18:07:53 +08:00
78ad1447c0 tikv: distinguish server timeout and server busy error for TiKV and TiFlash (#21109) 2020-12-03 17:16:48 +08:00
c218c58218 *: support select from tablesample (#20883) 2020-12-03 16:46:18 +08:00
4dfb172d9a errno: show column name in redacted duplicate entry error (#21261) 2020-11-25 21:39:23 +08:00
863117ba05 session: Check the partition placement constraint of local transactions (#21039)
Signed-off-by: Song Gao <disxiaofei@163.com>
2020-11-17 14:28:27 +08:00
6e1aa0d765 *: restrict the length of enum/set value (#19109) 2020-11-04 19:10:02 +08:00
b2e6df07c8 session: Support Variable-Setting Hint SET_VAR (#20232) 2020-10-28 14:27:13 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
8f7ae677ac errno: batch change functional index to expression index (#20393)
Signed-off-by: lihaowei <haoweili35@gmail.com>
2020-10-13 19:08:23 +08:00
57b244e9e0 ddl, errno: fix expression index allows row function (#19987)
Signed-off-by: wangggong <793160615@qq.com>
2020-09-30 16:23:54 +08:00
0528a1f12f *: handle the to-do item of rebuilding ReorgInfo key when executing modify/change column (#19866) 2020-09-27 08:34:36 +08:00
a428d472e9 *: remove the unused terminology (#19727)
* *: remove the unused terminology

* rename back

* delete more

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-04 17:12:01 +08:00
42eaaa590d *: move backfillWorker code to backfilling.go, update logs and comments (#19503) 2020-09-02 15:48:38 +08:00
089c6a42fc tikv: backoff and do not drop cache on MaxTimestampNotSynced region error (#19473)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-08-27 11:35:21 +08:00
dy
bbc0502038 expression: add warnings for logarithm functions (#18668) 2020-08-19 16:41:02 +08:00
xhe
e75683c2ee ddl: align placement syntax implementation to RFC (#18957) 2020-08-07 11:37:53 +08:00
32a4805090 ddl, core: fix parser issue 602 (#17995)
* ddl, errno: add TableOptionUnion related error, errcode and errname

* core: add TableOptionUnion grammar check when creating/altering table

* ddl, errno: add TableOptionInsertMethod related error, errcode and errname

* core: add TableOptionInsertMethod grammar check when creating/altering table

* ddl_test: add test

* ddl_test: mv test to TestCreateTable

* remove unnecessary lines

* core: check for unsupported table options

Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-21 23:26:20 +08:00
8640eb0749 ddl: add warnings for constraint and check (#17830) 2020-06-24 10:03:45 +08:00
b59cb1a94d planner, session, util: support Insert hint (#16966) 2020-06-17 15:56:01 +08:00
f2256261f6 ddl: forbid add column with sequence as default value (#17133) 2020-05-14 11:48:54 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
43764a59b7 RFC + Support of BACKUP and RESTORE statements (#15274) 2020-04-30 19:35:56 +08:00
14a4a4e916 tikv: fix infinite retry when kv continuing to return staleCommand error (#16481) 2020-04-17 17:00:43 +08:00
94fb1bf18d txn: stop more statement executions if pessimistic transaction ttl manager timed out (#15877) 2020-03-31 11:53:41 +08:00
735f870c6c executor: refine getting prometheus address (#15304) 2020-03-17 14:10:24 +08:00
aec6143179 *: support require-secure-transport startup option (#15341) 2020-03-17 08:46:45 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00