Commit Graph

39 Commits

Author SHA1 Message Date
9321489621 ddl, executor: fix test race in terror (#25405) 2021-06-15 13:16:36 +08:00
79669921ff ddl: add region and split compatibility for temporary table (#24684) 2021-05-25 13:17:33 +08:00
d5e0ed0aae ddl: ban the setting replica for tables in system database (MySQL) (#24745) 2021-05-24 22:13:33 +08:00
e167b26e11 ddl: grammar check for create unsupported temporary table (#24723) 2021-05-21 11:28:21 +08:00
bc4a38c9b9 ddl: add partition compatibility for temporary table (#24406) 2021-05-06 20:27:52 +08:00
8c897b1f33 partition: check partition definition with unsigned option (#23428) 2021-03-23 19:31:37 +08:00
bc37f088ba *: fix some varcheck lint warnings (#23011) 2021-03-01 15:10:54 +08:00
8357f809ff *: remove some useless codes and do tiny update (#22972) 2021-02-26 19:14:53 +08:00
9e3c0649e4 ddl, session: add tidb_enable_exchange_partition variable (#22638) 2021-02-03 20:36:57 +08:00
7ea8102185 planner: Add table engine name check (#21110) 2020-12-09 15:56:06 +08:00
a3a248160f ddl: check partition definition correctly in list partition (#21309) 2020-12-08 14:10:48 +08:00
fb80822390 ddl: return an error if the alter table option is invalid (#21392)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-01 14:27:18 +08:00
094b462b44 ddl: check the expression in partition definition and refactor code (#21325) 2020-11-30 11:12:00 +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
8d35f17c17 Update the errors dependence to the latest version (#20917) 2020-11-10 09:50:39 +08:00
2c8b28c37b ddl: forbid invalid usage of window function in the generated column (#20855)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-11-06 12:06:32 +08:00
6e1aa0d765 *: restrict the length of enum/set value (#19109) 2020-11-04 19:10:02 +08:00
64698ef9a3 ddl: fix create table too many indexes (#20353) 2020-10-23 11:46:43 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
xhe
e3a4ccf949 ddl: supports transitions between time types (#19988)
Signed-off-by: xhe <xw897002528@gmail.com>
2020-10-20 21:20:04 +08:00
afd223c32b ddl: support create list partition table (#20279) 2020-10-15 20:24:24 +08:00
a8dea3a2a1 ddl: refine error message for expression index (#20337) 2020-10-09 17:11:40 +08:00
789581bf29 parser: disallow subquery without table alias (#19102) 2020-10-09 15:53:40 +08:00
5ad75fd215 ddl, executor: add error for functional index cannot refer to an auto-increment column (#20336)
Signed-off-by: lihaowei <haoweili35@gmail.com>
2020-10-09 08:14:40 +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
42eaaa590d *: move backfillWorker code to backfilling.go, update logs and comments (#19503) 2020-09-02 15:48:38 +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
fe59fd4e92 fix: add warning for AlterTableRepairPartition (#18454) 2020-07-10 16:48:31 +08:00
8640eb0749 ddl: add warnings for constraint and check (#17830) 2020-06-24 10:03:45 +08:00
7f03358895 ddl: throw unsupported warning when alter table with/without validation (#16089) 2020-06-17 09:58:45 +08:00
1cc33b0b36 ddl: Support exchange partition (#17149) 2020-06-10 13:31:07 +08:00
f2256261f6 ddl: forbid add column with sequence as default value (#17133) 2020-05-14 11:48:54 +08:00
fdfeac712b ddl: make 'alter table reorganize partition' report error (#17020)
This operation is not supported yet, return an error explicitly is better
that simply ignore the statement.
2020-05-13 19:00:12 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
8f380b5b70 ddl: forbid changing column collation at some cases. (#15562)
* ddl: forbid changing column collation in some cases.

When the new collation framework is enabled, the index of string columns
is collation-aware. Changing the collation of such columns require the rewrite
of the index, which is not supported yet, so we forbid such cases for
now.
2020-03-23 15:38:16 +08:00
60ba54e040 config: add option 'allow-expression-index' for expression index (#15259) 2020-03-20 19:03:22 +08:00
1e32b49c67 planner: fix create view grammer check (#15334) 2020-03-15 10:06:23 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00