Commit Graph

506 Commits

Author SHA1 Message Date
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
7ccbdc12b3 tables: remove struct Table (#13877)
* done

* fix typo

* fix typo
2019-12-04 15:19:38 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
dcbb5a162a table: format table error code and error message (#13233) 2019-12-03 19:59:39 +08:00
b1ffba6031 table: refactor the code to check the err (#13780) 2019-11-28 14:58:22 +08:00
37ea7d44a5 table: refactor code simplify string comparison (#13762) 2019-11-27 17:03:23 +08:00
e979cff6bb planner: add column mapping in explain result (#13640) 2019-11-27 16:39:19 +08:00
6b7e19ab41 extract a LogicalMemTable from DataSource to decouple memory/stored tables (#13741)
Signed-off-by: Lonng <heng@lonng.org>
2019-11-27 10:19:17 +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