Commit Graph

19 Commits

Author SHA1 Message Date
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