Commit Graph

131 Commits

Author SHA1 Message Date
34a8ca30d6 executor: use the kv.PresumeKeyNotExists option in updateRecord() (#11720)
This change can avoid unnecessary network roundtrip when creating a primary key or unique index
2019-08-26 15:18:30 +08:00
adb3071c90 *: refine the attribute definition of types.Time and types.Dur… (#11672) 2019-08-14 11:30:40 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
85c790ec97 planner, executor: tiny refactor (#11420) 2019-07-26 19:31:06 +08:00
b3f71868c1 executor: fix autoid doesn't handle float, double type and tin… (#11110) 2019-07-22 19:19:54 +08:00
ea6b865c08 executor: fix a logical error which is introduced in a previous refactor (#11060) 2019-07-04 11:46:03 +08:00
ff82b62b97 *: refactor the optional arguments for table.AddRecord and index.Create (#11018) 2019-07-02 15:51:29 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
e9653675dd *: remove errors.Trace in main handle path (#10033) 2019-04-04 14:27:15 +08:00
f738ba24ad executor: replace logger with zap logger (#9521) 2019-03-14 15:14:38 +08:00
b3698f6670 executor: fix panic and update error data when table has column in write only state (#8792) 2019-01-02 15:49:39 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
0e89c02ffb *: clean up code for insert/update statement (#8867) 2018-12-29 18:46:47 +08:00
7528a059cf executor/server/session: add extra info message sent to mysql client (#8285) 2018-12-19 15:32:49 +08:00
f547869f49 executor: fix affected rows when inserting data (#8233) 2018-11-09 14:22:55 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
ec9672cea6 stats: update delta info for partition table (#7947) 2018-10-18 18:42:41 +08:00
d7a59ec5a3 executor: remove some useless code and avoid some redundancy check (#7639) 2018-10-12 12:56:02 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
2d62584a0c executer: make updateRecord easier to understand (#7557) 2018-09-10 16:00:32 +08:00
720e8230e2 executor: only rebase auto increment ID when needed (#7515) 2018-08-31 14:24:32 +08:00
9070bb6b86 executer: fix the last_insert_id in insert on duplicate key update (#7534) 2018-08-30 14:16:30 +08:00
6569264176 rewrite CheckHandleExists to refactor partition (#7321) 2018-08-08 18:33:09 +08:00
f6dbad0f5c *: move the dirty table modification to table package (#7289) 2018-08-07 15:38:01 +08:00
9813c71498 *: support update operation for table partition (#7166) 2018-08-07 10:34:20 +08:00
581edd4cac executor: set the correct handle in DirtyDB when executing update statements (#7209) 2018-08-01 11:36:22 +08:00
2fba9931c7 *: remove DatumRow (#7165) 2018-07-26 19:42:58 +08:00
ab332eba2a executor: BadNullError should be ignored by insert ignore statement (#6465) 2018-06-29 13:15:31 +08:00
4a36ef721c executor: DML use DatumRow (#6720) 2018-06-01 10:22:02 +08:00
ce071f5dd3 refactor load data (#6665) 2018-05-29 21:19:14 +08:00
36c3f0dd36 split write.go (#6660) 2018-05-28 14:29:42 +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
5c2d21eab4 *: remove function "NewChunk" (#6524) 2018-05-14 13:43:19 +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
0fda3b408f executor: move IgnoreErr to StmtCtx (#6392) 2018-05-02 17:10:59 +08:00
32f4311f07 opt on duplicate update (#6337) 2018-05-02 10:49:54 +08:00
3513319106 support insert ignore on duplicate update (#6283) 2018-04-13 23:11:50 +08:00
9fbf8a6637 stats: dynamically update the average column size (#6170) 2018-04-13 16:31:43 +08:00
2b2522be36 *: fix writing null value into not null column in write-only state. (#6249) 2018-04-10 09:21:41 +08:00
3ecf6bd6c8 executor: fix insert on duplicate update (#6235) 2018-04-09 00:13:38 +08:00
fe60be9f7f executor: remove Row (#6236) 2018-04-08 22:28:25 +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
ccf6da1a46 *: rename NextChunk to Next (#6214) 2018-04-03 20:00:30 +08:00
5309efe748 executor: make the message of ErrDataTooLong consistent with MySQL (#6166) 2018-03-29 11:27:16 +08:00
daa866cdd4 executor: remove Next function for executor/write.go (#5995)
remove Next function for DeleteExec && LoadData && InsertExec && ReplaceExec && UpdateExec
2018-03-18 21:10:51 +08:00
a46480c830 *: export implicit rowid and use it in CRUD (#5984) 2018-03-15 16:35:58 +08:00