Commit Graph

106 Commits

Author SHA1 Message Date
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
deb7700e85 test: fix ddl_test and make auto id test stable (#12931) 2019-10-28 11:50:00 +08:00
2e6a2ee478 planner, executor: support create view on union (#12595) 2019-10-24 11:30:12 +08:00
9b0334601a executor: speed up test (#12896) 2019-10-23 21:11:21 +08:00
bc997d7035 executor: split test for speed up (#12881) 2019-10-23 12:58:29 +08:00
2ef6f46a63 ddl: fix modify bit column (#12008) 2019-09-05 20:21:55 +08:00
29970ca353 DDL: fix a bug in column charset and collate when create table and modify column (#11300)
* fix a bug in column charset and collate when create table and modify column

* extract the fix code logic to a func

* fix multiple collate specified in column

* add more test for multiple column collate

* add more Err case for multiple column collate

* fix comment format
2019-07-24 16:06:37 +08:00
b63a8bfedf meta: make auto increment id can be adjust. (#10978) 2019-06-28 22:26:08 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c59a108c28 ddl, expression: Disallow add stored generated columns through ALTER TABLE (#10758) 2019-06-13 21:14:40 +08:00
7d27fa63d3 ddl, table: allow using SHARD_ROW_ID_BITS with auto_incremental columns (#10759) 2019-06-12 20:43:29 +08:00
ce91d25008 *: fix panic for create view using prepare (#10651) 2019-06-04 12:54:55 +08:00
2c192bc7d8 ddl: set column collate from ColumnOptionCollate (#9947) 2019-04-22 10:23:24 +08:00