Commit Graph

81 Commits

Author SHA1 Message Date
1255973764 tables: make duplicate error in update clearer (#7495) 2018-08-28 15:34:39 +08:00
1dc41d8b79 add logs for replace and insert on dup (#7436) 2018-08-21 12:43:41 +08:00
233660af69 Revert "*: add a String method for Datum to make the log more friendly (#7426)" (#7435)
This reverts commit 7773b283907017ccf4835e22091c7a0508cf5383.
2018-08-20 15:17:17 +08:00
7773b28390 *: add a String method for Datum to make the log more friendly (#7426) 2018-08-20 14:09:26 +08:00
1558a9c096 executor: fix duplicate row check when chunk size is small (#7393) 2018-08-17 16:52:52 +08:00
bbec68304e executor,table: support replace operation for table partition (#7309) 2018-08-16 13:28:50 +08:00
7f286f5c12 types: add one more space to make json pretty (#7389) 2018-08-16 11:04:39 +08:00
9813c71498 *: support update operation for table partition (#7166) 2018-08-07 10:34:20 +08:00
130f53b316 *: partitioned table should not use PointGetPlan (#7261)
* *: partitioned table should not use PointGetPlan
2018-08-03 12:57:13 +08:00
5d96d56de7 plan: fix a bug when eliminating projection (#7257) 2018-08-03 00:01:43 +08:00
581edd4cac executor: set the correct handle in DirtyDB when executing update statements (#7209) 2018-08-01 11:36:22 +08:00
26b7a5e7d1 execuor, plan: check b.err in buildUpdate after doOptimize (#7204) 2018-07-31 19:22:00 +08:00
a816f7882a table,plan,executor: support delete operation for table partition (#7147) 2018-07-30 18:25:51 +08:00
b5f9b35a45 plan: refactor the code of building Insert. (#7068) 2018-07-25 22:41:42 +08:00
9cf670a324 *: cut off duration.fsp in chunk (#7043) 2018-07-17 15:36:27 +08:00
8db5811cb6 *: 'load data' should not use latches (#6927)
'load data' is not retryable when it meets conflicts, while latches may result in
false positive transaction conflicts. so enable latches will lead to 'load data'
abort abnormally, even there are no conflicts.
2018-07-02 11:53:12 +08:00
8c666359a5 executor: handle \N as NULL in load data statement (#6873) 2018-06-29 19:42:24 +08:00
753b295877 executor, types: fix bug of insert into unsigned float/double (#6939) 2018-06-29 14:48:16 +08:00
ab332eba2a executor: BadNullError should be ignored by insert ignore statement (#6465) 2018-06-29 13:15:31 +08:00
3c0bfc19b2 executor: improve performance for insert ignore on duplicate key update statement (#6760) 2018-06-19 20:28:06 +08:00
ce071f5dd3 refactor load data (#6665) 2018-05-29 21:19:14 +08:00
eaf82968c4 Executor: fix affected rows count when update (#6656) 2018-05-28 10:24:39 +08:00
d965658251 executor: fix a bug of duplicate key update (#6589) 2018-05-22 13:00:08 +08:00
2fe3581819 plan: resolve indices for apply schema (#6540) 2018-05-11 22:02:12 +08:00
b175f27a0a executor: set last insert id in the duplicated update statement (#6345) 2018-05-09 15:40:35 +08:00
3db7594fa5 *: Refine error message about "Out of range value for column" (#6334) 2018-05-09 15:00:52 +08:00
877d0d4d3d *: fix a bug occurred when insert into time column (#6451)
* *: fix a bug when insert decimal or decimal-like string into time col
2018-05-09 10:52:30 +08:00
0fda3b408f executor: move IgnoreErr to StmtCtx (#6392) 2018-05-02 17:10:59 +08:00
3513319106 support insert ignore on duplicate update (#6283) 2018-04-13 23:11:50 +08:00
3ecf6bd6c8 executor: fix insert on duplicate update (#6235) 2018-04-09 00:13:38 +08:00
fbae31e959 executor: optimization for insert on duplicate key update (#6194) 2018-04-08 15:12:21 +08:00
6ff44c7878 kv: merge batch get results to fix insert ignore in a transaction block (#6215) 2018-04-04 13:35:54 +08:00
5309efe748 executor: make the message of ErrDataTooLong consistent with MySQL (#6166) 2018-03-29 11:27:16 +08:00
a46480c830 *: export implicit rowid and use it in CRUD (#5984) 2018-03-15 16:35:58 +08:00
096562ee8a executor: fix bug in insert (#5968) 2018-03-07 16:29:48 +08:00
12c87929b8 *:fix some golint && ineffassign && misspell to improve GoReport Result (#5867) 2018-02-23 19:31:05 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
eaef520634 types,executor: treat decimal truncate as warning in update (#5801) 2018-02-08 15:55:52 +08:00
a2a48b3085 executor: use batch get to speed up LOAD DATA (#5632)
* use batch get to speed up LOAD DATA
2018-01-19 15:58:00 +08:00
31b606d30d executer: optimization for insert ignore (#5508) 2018-01-12 11:09:25 +08:00
65b2b0d452 *: Set the batch delete/insert size by session variable (#5413)
We hardcode it to 20k. But if the row size is large. It will still break
the transaction size limitation. So we need to provide a way to set it
dynamicially.
2017-12-17 21:11:18 -06:00
6ca4382dba *: fix update JSON field. (#5345) 2017-12-11 11:39:14 +08:00
f828016e9f *: move sessionctx/domainctx.go to domain package (#5168) 2017-11-22 13:41:58 +08:00
16003f0d82 executor: fix missing index update when automatic updating for timestamp 5172 (#5176) 2017-11-21 19:04:54 +08:00
14ed94132c executor: fix issue #5132, update handle id with some other unique keys report Duplicate keys. (#5138) 2017-11-20 11:06:28 +08:00
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
e15238423f executor, plan: add cast for the expr of assignments of updateList (#4850) 2017-10-20 08:58:33 -05:00
16eb0ae33b executor: fix bug when auto_increment meets unsigned. (#4824) 2017-10-19 15:31:16 +08:00
51a6e6fc48 *: fix ineffectual assignments #4713 (#4746) 2017-10-11 21:26:03 -05:00
7d2804e43c *: check sc.IgnoreZeroInDate when parsing string or number to date/datetime/timestamp (#4732) 2017-10-10 23:38:53 -05:00