Commit Graph

188 Commits

Author SHA1 Message Date
aa82a038f1 types: fix the bug about the wrong query result for decimal type (#22507) 2021-03-09 15:54:55 +08:00
5f73c822ca kv/union_store:remove tableinfo from union_store (#22976)
Co-authored-by: disksing <i@disksing.com>
2021-03-04 16:30:42 +08:00
9768e45476 session: add a test case for issue 19127 (#21010) 2021-03-04 11:50:54 +08:00
b5a9076aea *: new secondary index value format (#20220) 2021-03-03 21:16:54 +08:00
b81e547e66 executor: fix err check (#22991) 2021-03-03 19:26:56 +08:00
10e5a34be8 execution: fix index's duplicate error message (#22858) 2021-03-02 10:56:53 +08:00
7151b4f3b5 config: use tidb_enable_list_partition to enable list table partition feature (#22864) 2021-02-25 22:11:04 +08:00
27db39b480 *: use CLUSTERED and NONCLUSTERED to control primary key type (#22409) 2021-02-05 20:41:41 +08:00
558d5610ce executor: fix load-data result when field term be the prefix of line term (#22585)
Signed-off-by: lysu <sulifx@gmail.com>
2021-01-28 17:46:00 +08:00
fdd
2364fec8f0 executor: fix load data in file get wrong result #20854 (#21895) 2021-01-21 21:53:29 +08:00
ca93c7fc16 types: convert string to MySQL BIT correctly (#21310) 2021-01-18 12:17:58 +08:00
f2a68ee28a executor: fix update ignore into not exists partition (#21984) 2020-12-30 16:44:13 +08:00
b1bd2856ca config: disable list partition by default since it's an experimental feature (#22045) 2020-12-29 09:56:18 +08:00
c3e54962d1 executor: fix a bug that can not insert null into a not null column in the empty SQL mode (#21237)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-25 11:44:00 +08:00
0735a0c924 executor: fix insert ignore into not exists partition (#21904)
Signed-off-by: lysu <sulifx@gmail.com>
2020-12-23 17:19:29 +08:00
f9092ad3fd executor: generated column make overflow error as warning when no strict sql mode (#21879)
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com>
2020-12-21 16:21:30 +08:00
a42aa31dc9 executor: add auto_random, auto_increment, generated column, global index test for list (columns) partition (#21725)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-17 11:19:35 +08:00
a02660e2dd *: fix tiny bug and add more DML test for list partition table (#21423)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-12-11 21:32:22 +08:00
39d8fcc71b executor: fix value swapping and multi-updates in UPDATE statement (#20493) 2020-12-10 15:48:02 +08:00
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
115c7f88e8 executor: set the inner join keys' field length to unspecified (#21233) 2020-11-24 17:00:53 +08:00
afb2ab95f0 table: fix zero date in different sqlmode (#20206) 2020-11-24 12:46:51 +08:00
7ab3649256 executor, types: fix skipped replace when the value is treated as the same in CI collations (#20858) 2020-11-11 19:38:23 +08:00
dy
cc0bef82b7 util, types: fix overflow & adjustment for the year type in index ranger (#20338) 2020-11-06 17:14:54 +08:00
bacd348560 executor: modify the error message of insert time value (#20847) 2020-11-06 16:24:40 +08:00
feab4cb9b8 executor: fix skipped update when the value is treated as the same in CI collations (#20786) 2020-11-04 17:07:16 +08:00
fc4be377e1 executor: add test for insert/update/delete list [columns] partition (#20635)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-10-27 17:52:53 +08:00
6271bd472e expression: fix inaccurate error info for year column out of range (#18871) 2020-09-23 15:52:30 +08:00
fdcc19eb11 sessionctx: fix a bug where update stmt not considered when clipping negative num to 0 (#19605) 2020-09-03 20:16:17 +08:00
ed4004ac04 executor: fix apply with union scan and point batch point get (#19128) 2020-08-12 10:49:30 +08:00
b75a30fda8 transaction: always lock keys with presume not exists flag (#19071)
* transaction: lock delete unique index key

* always lock for key with presume not exists flag

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-09 22:50:48 +08:00
d0639b0056 *: use the newly designed memdb (#18657)
* *: use the newly designed memdb

* address comments

* remove duplicated comments

Co-authored-by: Evan Zhou <coocood@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-03 20:51:05 +08:00
761a961ba0 kv: refactor MemBuffer and reduce the memory usage (#18372) 2020-07-15 15:26:25 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
c0814f0b0e return err when INSERT/UPDATE/ANALYZE/DELETE a sequence (#16936) 2020-04-30 16:52:38 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
5bf9ad7b81 executor: fix load data deal with escape character. (#16340) 2020-04-20 20:33:28 +08:00
0f302966a4 test:make TestLoadDataMissingColumn stable (#16130) 2020-04-08 22:48:39 +08:00
1ff32ace27 executor: use MySQL compatible truncate error code (#15422) 2020-03-18 12:28:43 +08:00
a37a0ff461 store: check constraint for "Delete-Your-Writes" records when txn commit (#14968) 2020-03-06 16:45:48 +08:00
87bbe7dcbe types: Fix duration parser (#14588)
Signed-off-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-02-07 14:30:44 +08:00
128ec02a9f test: fix a bug for leak check (#14592) 2020-02-05 14:15:23 +08:00
39ed9f326a executor: Speed up unit tests (#14357) 2020-01-06 21:20:09 +08:00
c1bc9ffe5b *: add memory tracker for InsertExec and ReplaceExec (#14179) 2019-12-30 11:43:01 +08:00
206cdbedfc types: fix insert error when convert string to float (#13716) 2019-12-10 16:03:25 +08:00
3a48a48630 *: remove the assertion proto (#13732)
The assertion proto was introduced to verify the data consistency, but I find
it's complex and hard to achieve that goal. Adding additional assertions just
makes more memory occupation, especially in the large transaction.
So it's better to remove it.
2019-11-26 22:58:49 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
275984501f planner: Support assign DEFAULT in ON DUPLICATE KEY UPDATE statement (#13168) 2019-11-21 12:33:37 +08:00
380216ed20 planner: Fixup error when assign DEFAULT in `INSERT/UPDATE/R… (#13211) 2019-11-19 18:23:02 +08:00
dffc5152f2 planner: freeze the output order of UPDATE's select (#13166) 2019-11-11 23:09:21 +08:00