Commit Graph

114 Commits

Author SHA1 Message Date
583cdc8f13 executor: trim ( and ) for the outputs of expression (#26687) 2021-07-28 15:20:17 +08:00
1641b3411d executor: fix expression field for show keys from (#26119) 2021-07-15 10:29:33 +08:00
c6680e999b *: update client-go and update mocktikv usages (#25911) 2021-07-09 10:57:32 +08:00
xhe
9189ec66ac *: stale reads compatible with prepare (#25156) 2021-06-11 19:32:35 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
6026b63891 *: update kvrpcpb to not use abbreviations (#25265) 2021-06-09 13:28:28 +08:00
0f10bef470 domain, session: Add new sysvarcache to replace global values cache (#24359) 2021-05-17 22:13:39 +08:00
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
af6cece281 *: support read and write operations for the global temporary table (#24196) 2021-04-29 21:49:58 +08:00
e104d818cf mocktikv: remove SplitTable and SplitIndex (#24104) 2021-04-20 13:29:52 +08:00
a90e4f2b29 telemetry: fix prepare stmt and copr cache (#23526) 2021-03-25 16:15:15 +08:00
78fc47c9a2 collation: hide pinyin collation in show collation (#23521) 2021-03-25 15:09:24 +08:00
9f465d788e planner: incorrect results returned when executing a prepared point-get update meets nondeterministic function. (#22067) (#23455) 2021-03-22 19:57:37 +08:00
411dba25b1 *: deprecate alter-primary-key configuration (#23270) 2021-03-18 15:17:36 +08:00
1ac53c546d planner: fix wrong PointGet / TableDual plan reused in plan cache (#23238) 2021-03-17 16:52:55 +08:00
9c48b24cb1 *: add clustered index info in show index from stmt (#23329) 2021-03-16 20:16:55 +08:00
3750320899 executor: add close recordSet in executor (#22714) 2021-03-07 17:54:55 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
602bcd2e40 *: fix some structcheck lint warnings (#22983) 2021-03-02 23:12:54 +08:00
febac515b1 store/tikv: move coprocessor out (#22922) 2021-03-01 11:42:54 +08:00
b74dfaf810 mockstore: move mockstore/cluster to tikv/mockstore/cluster (#22856)
Signed-off-by: disksing <i@disksing.com>
2021-02-22 15:42:16 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
0370fbf6a3 types: Regard TypeNewDecimal as not a hasVariantFieldLength type. (#21849) 2020-12-23 12:59:48 +08:00
ab9cd019be *: make expression index as an experiment feature (#21721)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-14 20:52:44 +08:00
93c3e6becd *: fix default decimal precision (#21162) 2020-11-21 21:07:54 +08:00
e608e4bca9 ddl: fix the enum's default value where create table (#20849) 2020-11-11 20:18:17 +08:00
9007614f95 executor: fix wrong is-null result of ShowExec.fetchShowIndex (#20287) 2020-11-10 17:51:12 +08:00
522275783e executor: fix auto-id allocation during statements retry (#20659) 2020-11-09 16:37:12 +08:00
f1c464a86a collation: add utf8mb4_zh_pinyin_tidb_as_cs collation interface (#20504) 2020-11-03 11:35:39 +08:00
a55a51a163 executor: fix show create table int default value (#20462) 2020-10-28 14:08:37 +08:00
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +08:00
272f964031 executor: support global kill (#17649) 2020-10-27 19:39:20 +08:00
91b6d9eedc executor: fix unexpected 'invalid auto-id' error in pessimistic txn retry (#20123) 2020-09-22 10:21:41 +08:00
0e4b809cad *: remove expression index out of the experiment feature (#19998)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-09-18 13:25:37 +08:00
78166329e2 executor: set the correct resultCh for task when indexHashJoin keep order (#18840)
* executor: set the correct resultCh for task when indexHashJoin keep order (#18757)

* update test

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-05 17:24:57 +08:00
e24d1455af types, executor: refine convertToMysqlEnum when src is of type Enum (#19640)
* types, executor: refine convertToMysqlEnum when src is of type Enum

* remove useless code

* refine

* add a TODO for collation

* add test for collate

* remove useless code

* address comment

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-01 19:35:12 +08:00
6831e487a8 Issue 19371 - Prepare statement with @Var (uppercase in var name fix) (#19373) 2020-08-23 21:34:47 +08:00
xhe
f8518988e4 ddl: improve compatibility for ALTER TABLE algorithms (#19270)
* ddl: always try a better algorithm

* ddl: adapt the test

* ddl: fix TestAlterAlgorithm

* ddl: better test fix

* ddl: typo

* ddl: update comment

Co-authored-by: bb7133 <bb7133@gmail.com>

* executor: typo

Co-authored-by: djshow832 <zhangming@pingcap.com>

Co-authored-by: bb7133 <bb7133@gmail.com>
Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-21 16:30:57 +08:00
57e43bdea3 planner: workaround the panic of command EXECUTE when printing an expensive query log (#19316) 2020-08-20 17:45:47 +08:00
b642045ff2 charset: add utf8_unicode_ci and utf8mb4_unicode_ci interface (#18678)
* add unicode_ci interface

* fix build

* fix check

* fix test

* change comments

* add test

* Update util/collate/unicode_ci.go

Co-authored-by: djshow832 <zhangming@pingcap.com>

Co-authored-by: djshow832 <zhangming@pingcap.com>
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com>
Co-authored-by: djshow832 <873581766@qq.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-07-24 17:16:03 +08:00
8b856cc82d autoid: only initialize rowid allocator if necessary (#18326) 2020-07-13 17:01:56 +08:00
a8da23c254 test: fix data race caused by update global config (#17964)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-12 13:05:27 +08:00
f139821c82 session,executor: tiny clean up the runStmt function (#17911)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-11 22:11:58 +08:00
f12cdc4201 config: remove allow-auto-random config option (#16596) 2020-06-10 14:09:12 +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
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
0de6925e12 ddl: Add some limit for auto_random (#17119) 2020-05-15 21:28:44 +08:00
26e946d25e plannercore: ignore invisible indexes in optimizer (#15421) 2020-05-07 11:00:40 +08:00
30f6f32708 tests: abstract Cluster interface for introducing new mock... (#16940) 2020-04-30 10:46:55 +08:00
46e37a1700 executor: generalize SHOW TABLE t NEXT_ROW_ID for auto_random and sequences (#16821) 2020-04-29 20:00:26 +08:00