Commit Graph

533 Commits

Author SHA1 Message Date
c19018e06f rename 'trancates' to 'truncates' (#17968) 2020-06-16 19:55:29 +08:00
6c305e2a49 ddl: apply common handle to index reorganization (#17906) 2020-06-16 09:52:39 +08:00
d445e55fc4 planner,executor: fix select big number on hash partition table panic (#17881) 2020-06-12 15:32:52 +08:00
1dc57ed9f4 table/tables: fix load partition when upgrade from an old TiDB (#17971) 2020-06-12 15:11:55 +08:00
3ab8f34110 table: fix a bug that replaces into a table with generated column fail (#17838)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-10 15:19:30 +08:00
73c4673f30 *: support update/delete/insert ignore/duplicate update in single cluster index table (#17721) 2020-06-08 20:55:31 +08:00
1481cccb35 table: improve the coverage of key path in table (#17026)
* cover column

* cover collation union_scan

* go fmt

Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-06-08 12:39:45 +08:00
d66d5028da *: support plain insert on cluster index table (#17674) 2020-06-05 13:23:43 +08:00
552e7709de *: refactor decoder to avoid useless fieldType convert (#17632) 2020-06-03 18:13:56 +08:00
745e979a42 expression: fix data race when simpleRewriter rewrite ast.ColumnNameExpr concurrently (#17353) 2020-05-26 10:52:11 +08:00
38d63c2fa5 planner,table: optimize partition pruning performance for range columns (#17249) 2020-05-21 15:03:22 +08:00
4078eb4ae5 util/admin: support admin recover index on the partition table (#17195) 2020-05-20 17:10:44 +08:00
3176b00c02 executor: fix the issue that UNIQUE constraint on boolean column results in an incorrect result in a comparison (#17245) 2020-05-20 13:55:18 +08:00
c60ea27e6c *: fix partition selection for the update statement (#17285) 2020-05-20 13:05:44 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
1417ba2288 *: fix a bug that don't handle truncate properly for virtual generated column (#17217) 2020-05-14 20:57:55 +08:00
ce923ac85d executor: only reserve the sign bit when auto_random column is signed (#15566) 2020-05-11 18:19:36 +08:00
c258afafe2 *: index codec for common handle (#16998) 2020-05-09 16:18:05 +08:00
66f4ae253e planner: fix choosing the partition wrongly when the where stmt is only one eq condition. (#16975) 2020-05-09 14:02:20 +08:00
51dabaabef *: refactor Handle in executor package (#16871) 2020-04-28 21:27:19 +08:00
6814f8c94b *: refactor Handle in table package (#16807) 2020-04-27 10:04:50 +08:00
82bb3ced74 makefile: let make fmt ensure std imports before non-std (#16816) 2020-04-26 10:37:24 +08:00
7b25ce0d94 *: support auto_random table option (#16750) 2020-04-24 23:14:51 +08:00
af376db3dc *: refactor Handle in tablecodec and rowcodec (#16705)
Co-authored-by: pingcap-github-bot <sre-bot@pingcap.com>
2020-04-23 18:55:59 +08:00
242ce93302 Revert "expression: support NO_ZERO_DATE sql_mode" (#16740) 2020-04-23 13:37:19 +08:00
db7c13537a expression: support NO_ZERO_DATE sql_mode (#16053) 2020-04-22 23:27:01 +08:00
62e4d588a8 Makefile: add unconvert to inspect unnecessary type convert (#16549) 2020-04-22 23:01:59 +08:00
a0c7407846 executor: set length and frac when we change zero to decimal t… (#16518) 2020-04-18 00:01:37 +08:00
b8b49f5937 *: fix setval in another session return num when it is already satisfied in meta (#15848) 2020-04-03 17:11:20 +08:00
c81e903804 *: use the revertable sandbox to buffer mutations (#15931) 2020-04-03 14:54:27 +08:00
c74bd8f632 ddl: added (ddl.DDL).Create{Table,Schema}WithInfo (#15806) 2020-04-01 14:59:40 +08:00
acad2feb51 table: fix multi nextval will return wrong result without sequence cache (#15728) 2020-03-30 14:17:12 +08:00
64f339f1cc table: clean up useless code (#15657) 2020-03-26 09:53:38 +08:00
365ff9b57c *: handle signed/unsigned in the partition pruning (#15436) 2020-03-24 11:47:59 +08:00
3ced6bc9ac dml: support default expression cache when insert (#15216) 2020-03-19 10:51:22 +08:00
88dd552a6d *: fix autoid allocation to avoid quickly exhaustion (#15261) 2020-03-13 10:50:03 +08:00
9f0736ee8b errno: move the error code from the parser/mysql to tidb/errno (#15277) 2020-03-11 15:40:21 +08:00
b504d37924 *: refine the table.Table interface (#15227)
remove unnecessary methods.
"The bigger the interface, the weaker the abstraction -- Rob Pike"
2020-03-10 13:40:56 +08:00
0ddfe0716f *: fix datum's collation behavior to build correct logical ranges (#14963) 2020-03-05 22:34:46 +08:00
b3469e7964 *: fix a bug that the pessimistic lock doesn't work on a partition (#14921)
physicalID should be used if 'select for update' works on a
partitioned table.
2020-03-03 15:06:45 +08:00
495f8b7438 tables: disable UpdateDeltaForTable if TxnCtx is nil (#15047) 2020-03-03 11:16:09 +08:00
41142266b2 *: use SetString() for string instead of SetBytes() (#14989) 2020-03-02 15:48:10 +08:00
8680c8a76b tables: add sequence binlog support (#14954) 2020-02-28 18:46:42 +08:00
332cef97f5 *: support index encode/decode for new collation (#14876) 2020-02-27 11:33:33 +08:00
902c6ca2b9 planner,expression,table: clean up the old partition pruning code (#14834) 2020-02-27 00:52:03 +08:00
0bbf1d954c *: implement the sequence allocator logic. (#14829) 2020-02-26 15:45:38 +08:00
a7bdb82402 *: Reduce memory operations by simply passing size hint to make (#14922) 2020-02-25 15:44:36 +08:00
eb12799152 *: Collation should be set accordingly when setting string datum (#14757) 2020-02-20 23:01:53 +08:00
344c48d3b4 *: change field name 'password' to 'authentication_string' in mysql.user (#14598) 2020-02-19 11:58:42 +08:00
a22ab8f297 expression: support sequence function (#14731) 2020-02-17 20:11:18 +08:00