Commit Graph

96 Commits

Author SHA1 Message Date
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
096562ee8a executor: fix bug in insert (#5968) 2018-03-07 16:29:48 +08:00
e1121814d2 *: don't import golang.org/x/net/context as goctx alias (#5895)
Now that there is no conflict with sessionctx.Context, this can be
import directly
2018-02-24 03:40:56 -06: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
c92b3056c0 *: refine code for StmtTxn (#5763) 2018-02-08 07:07:12 -06:00
5d91dbd5a1 executor: pass operator label from Plan to Executor (#5821) 2018-02-08 13:33:11 +08:00
f1eefc147b *: handle dirty table in StmtTxn (#5711) 2018-01-31 02:30:06 -06:00
24333b3b29 *: don't record binlog when statement rollback (#5699) 2018-01-25 06:50:57 -06:00
0b23ff48a6 *: execute statement meets error should make no side effect (#5678) 2018-01-22 13:49:29 +08:00
888bc2a602 *: uniform the way to iterate rows within a Chunk (#5674) 2018-01-22 11:34:04 +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
f57b8438bc table: index.addindices reuse temp buffer (#5600) 2018-01-17 05:32:30 -06:00
4df3a04023 executor: fillDefaultValues store casted default values (#5586) 2018-01-15 20:24:50 +08:00
ca97bfffe0 tables: when importing data, table.AddRecord has no needs to use temp BufferStore. (#5617) 2018-01-15 15:13:23 +08:00
3ce567630b executor: store column's fieldType in executor (#5619) 2018-01-12 16:57:31 +08:00
31b606d30d executer: optimization for insert ignore (#5508) 2018-01-12 11:09:25 +08:00
b7e7cd5d9a executor: lazily initialize InsertValues.colDefaultVals, because not every insert statement needs it. (#5589) 2018-01-09 22:36:04 +08:00
e9b450aa0a table: InsertExec eliminate unnecessary CastValue. (#5581) 2018-01-08 19:21:04 +08:00
eddff3429a *: importing data reduce memory allocations. (#5549) 2018-01-07 12:48:07 +08:00
140c3d0739 executor: "InsertExec.NextChunk" should use function "getRowsSelectChunk" (#5493) 2017-12-26 18:24:41 +08:00
c4fb12d60e executor: support Chunk for LoadData (#5465) 2017-12-21 22:44:59 +08:00
fe7900f176 executor: DeleteExec suport NextChunk (#5368) 2017-12-21 15:57:56 +08:00
3c418c5617 executor: implement NextChunk for ReplaceExec (#5370) 2017-12-21 13:41:21 +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
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
6ee266d0ca executor: UpdateExec support NextChunk (#5372) 2017-12-14 15:32:06 +08:00
8f5f071c9b executor: InsertExec support NextChunk (#5352) 2017-12-10 22:01:31 +08:00
5f468489ab util: add kvencoder package, make transfer sql to key-values be possible. (#5236) 2017-11-29 18:01:31 +08:00
fb610e6429 *: change executor Next() interface to Next(goctx.Context) (#5223) 2017-11-26 21:17:33 -06:00
02f6bb27c7 *: remove goCtx from session struct (#5174)
1. go context should not be stored
2. change Executor interface to Open(goctx.Context)
3. many other changes forced by this refactor
2017-11-22 02:17:38 -06:00
0ff13ce876 executor: simplify logic (#5185)
* : simplify
2017-11-22 00:55:56 -06:00
16003f0d82 executor: fix missing index update when automatic updating for timestamp 5172 (#5176) 2017-11-21 19:04:54 +08:00
c459da6887 *: refactor executor.checkHandleExists to tables.CheckHandleExists to reuse code (#5157) 2017-11-20 16:50:22 +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
e362f1ed56 types: add deepcopy for update operation (#5098) 2017-11-15 14:46:24 +08:00