Commit Graph

135 Commits

Author SHA1 Message Date
f2dba0e14e *: migrate some collation tests to explain test (#31993)
ref pingcap/tidb#31625
2022-01-26 19:32:46 +08:00
xhe
de885477b5 ddl: refactor schema builder (#31172)
ref pingcap/tidb#30272
2021-12-31 12:41:51 +08:00
2af4624cc9 executor: stable test TestSetDDLReorgBatchSize and TestSetDDLReorgWorkerCnt (#30480) 2021-12-07 17:19:56 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
42b0bec86d sessionctx/variable, executor: introduce a limit on "thread" config (#28842) 2021-10-22 11:42:46 +08:00
466e826a7e executor: Use charset and collation from server vars for new schemas (#27216) 2021-10-19 22:22:42 +08:00
e6c600ad16 *: always convert sysvar values when out of range (#25686) 2021-10-13 10:37:27 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
267a3b8162 executor: add auto id allocator execution runtime stats (#28013) 2021-10-08 17:35:24 +08:00
48c624b201 *: remove some unnecessary exported/interface functions (#28134) 2021-09-22 15:22:45 +08:00
33a6eee76b test: add variable character_set_connection into test session (#27943) 2021-09-14 11:22:42 +08:00
09e3090ba9 go.mod: update parser to fix the parse error for subquery (#25647) 2021-08-17 21:06:00 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
72807efe20 variable, ddl: allow auto inc columns in generated columns and expression indexes (#23940) 2021-07-28 16:22:18 +08:00
2b192e3149 topsql: refine collect information for DDL and internal SQL (#26047) 2021-07-15 16:13:36 +08:00
xhe
e04181b351 executor: forbid read from stale query result (#25954) 2021-07-13 16:49:32 +08:00
ad0f654fcb planner: fix bug when unfolding wildcard in view definiton (#25226) 2021-07-02 14:49:26 +08:00
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