Commit Graph

118 Commits

Author SHA1 Message Date
0da89207c9 txn: fix panic on duplicate insert on index column len longer than data len (#25414) 2021-06-15 16:00:37 +08:00
ac06d78691 *: enable column-type-change totally (#25263) 2021-06-09 10:56:29 +08:00
0158f71cda ddl: support type conversion between non-varchar and varchar (#24959) 2021-06-01 18:59:37 +08:00
a126b06a1d ddl: the clustered index primary key conflict prompt information is not an index value (#24831) 2021-05-24 13:31:33 +08:00
7d7a2337d9 ddl: forbid type conversion between varchar and non-varchar (#23688) 2021-03-31 16:03:24 +08:00
411dba25b1 *: deprecate alter-primary-key configuration (#23270) 2021-03-18 15:17:36 +08:00
3750320899 executor: add close recordSet in executor (#22714) 2021-03-07 17:54:55 +08:00
280d07c4a0 sessionctx, executor: make the upper limit of tidb_ddl_reorg_worker_cnt work (#23064) 2021-03-05 18:58:55 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
24c9df147d *: refactor table.Table interface, clean up unnecessay methods (#22430) 2021-03-02 19:48:54 +08:00
68aaa2fa7e *: fix auto-id allocate tracing (#22371) 2021-01-13 12:19:58 +08:00
5825c56764 *: fix invalid txn with DDL (#21837)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-12-17 19:14:35 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
5f73293cf5 ddl: check the generated column offset when modifies column (#21458)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-03 17:30:48 +08:00
f81a5d1314 planner: check view recursion when building source from view (#20398) 2020-11-12 10:44:23 +08:00
c9d7089d86 ddl: add charset info in show create table if column is generated (#20347) 2020-11-03 15:56:53 +08:00
91db54ef8e ddl: Support multiple table rename (#19962) 2020-10-28 11:36:03 +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
aa1d2d2b1b executor,ddl: update auto_random_base in 'show create table' after insertion (#18217) 2020-07-01 10:45:26 +08:00
3f6f36f742 *: refactor table.IterRecord and extract some methods (#18214)
* *: refactor table.IterRecord and extract some methods

* fix ci test

* fix ci test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-06-29 09:24:34 +08:00
28cc5e6ff7 ddl: save and restore auto_random id when rename table (#18212) 2020-06-28 22:01:49 +08:00
a4eb75a6f0 ddl: reject alter auto_random_base on a non auto_random table (#17714)
Co-authored-by: Arenatlx <ailinsilence4@gmail.com>
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-06 21:56:43 +08:00
a3d5082094 sessionctx, executor: add session var to control explicit insertion on auto_random column (#17102) 2020-05-26 20:32:10 +08:00
0de6925e12 ddl: Add some limit for auto_random (#17119) 2020-05-15 21:28:44 +08:00
ce923ac85d executor: only reserve the sign bit when auto_random column is signed (#15566) 2020-05-11 18:19:36 +08:00
664db4e33c ddl: forbid truncating sequence object (#16981) 2020-05-08 14:54:42 +08:00
d9c3617a1c fix test fail in TestAutoRandomTableOption (#16836) 2020-04-26 17:01:39 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
8c455e86c1 ddl: fix sequence object check error when alter table (#16625) 2020-04-21 10:14:09 +08:00
6b034d4237 *: fix unexpected error when setting collate for database (#16283) 2020-04-17 18:25:33 +08:00
d901863643 executor: insert negative primary key into auto_random table won't trigger rebase (#15397) 2020-04-15 20:56:37 +08:00
0ec8d3300c ddl, executor: forbid truncate view (#16251) 2020-04-15 18:28:43 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
12e1606b1c executor: fix failing to drop current database when new-collation is enabled (#15715) 2020-03-30 09:13:46 +08:00
0c5e58107d planner: forbiden nested view creation (#15420) 2020-03-17 17:29:13 +08:00
dcb8b3d5dd executor: fix last_insert_id in auto_random mode (#15145) 2020-03-05 15:59:18 +08:00
fe05ed5257 planner, executor: adjustOverlongColName for CreateView (#14850) 2020-02-20 17:19:04 +08:00
3cd5fb61ad *: fix "create or replace view" infoschema is inconsistent (#14832) 2020-02-20 15:04:33 +08:00
a528e60e3b *: add auto_random id cache for statement retrying and table recover (#14711) 2020-02-19 18:53:03 +08:00
25952d4a8f ddl, executor, server: add drop if exists warnings (#14807) 2020-02-18 11:40:48 +08:00
e7b1993238 test: fix the CI problem in TestAutoRandomBitsData (#14823) 2020-02-18 10:11:18 +08:00
3fa7b927fd test: fix shard row id bits test (#14489) 2020-01-16 20:03:20 +08:00
5a9f2fa5ab server, tikv: enable unit test run parallel and add parallel f… (#14296) 2020-01-09 15:12:45 +08:00
39ed9f326a executor: Speed up unit tests (#14357) 2020-01-06 21:20:09 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
3ee6bc8a21 ddl: fix the bug that VIEWs can be dropped by DROP TABLE syntax (#14048) 2019-12-13 17:07:43 +08:00
5886055b6b ddl: fix error code and error name (#13329) 2019-11-12 17:23:18 +08:00
cd7a053dbb ddl, executor: limit the length of the index name when executing "create table" (#13016) 2019-11-09 14:19:42 +08:00