Commit Graph

514 Commits

Author SHA1 Message Date
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
6d50a47a8b executor: add quote for partition name(close #14477) (#14793) 2020-02-16 19:53:19 +08:00
007c0e6656 *: support default expression value for sequence (#14589) 2020-02-13 18:50:33 +08:00
1d9ed45b37 *: support virtual generate column substitute optimization (#14367) 2020-02-10 16:01:05 +08:00
465af00b46 *: use new registrable terror (#14606) 2020-02-06 16:40:26 +08:00
c36f83e1b4 expression,table: fix insert partitioned table bug when the time zone change (#14370) 2020-01-14 17:41:21 +08:00
bf01def757 ddl: avoid panic when creating partition table with unsupported expression (#14295) 2020-01-14 17:09:56 +08:00
b6aca51d52 plan, partition: support point get plan on hash partition table (#14318) 2020-01-10 10:23:29 +08:00
870d4b19c8 *: support auto_increment_increment & auto_increment_offset. (#14301) 2020-01-08 10:18:39 +08:00
0bab73adf5 *: use new row-format in tidb (#12634) 2020-01-02 22:34:39 +08:00
e96be4580f plan, partition: add fast access path for hash partition (#13772) 2020-01-02 13:33:09 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
c1bc9ffe5b *: add memory tracker for InsertExec and ReplaceExec (#14179) 2019-12-30 11:43:01 +08:00
66b8add23d executor: support show extended columns statement (#14262) 2019-12-28 21:49:09 +08:00
86ae838d5a planner/core: disallow using hidden column in insert statement (#14150) 2019-12-26 16:08:55 +08:00
ef7adeb50d *: resort fields for reducing the memory allocated (#14172) 2019-12-23 17:10:09 +08:00
fce9870208 ddl,executor: add auto_random column option (#13127) 2019-12-23 14:51:51 +08:00
ed6497c451 table/tables: fix an error message when table has no partition for value (#14099) 2019-12-18 12:01:46 +08:00
42adca989e tables: basic support for hidden column (#13908) 2019-12-17 21:48:46 +08:00
13400ee89a table, executor: extract two functions for ShowCreateTable/DB (#13907) 2019-12-05 10:47:52 +08:00