Commit Graph

56 Commits

Author SHA1 Message Date
64484a4257 *: refactor context.Context (#2298)
Make transaction life cycle under control, prepare for correctly handle schema out of date error.
The old `GetTxn(forceNew boll)` is replaced by `Txn` and `NewTxn`,
`CommitTxn` and `RollbackTxn` is removed.
2016-12-23 13:02:41 +08:00
a89fa8a8d3 *: refact insert logic (#2252) 2016-12-20 17:38:23 +08:00
9c83f3f176 executor: 'INSERT IGNORE' should only ignore KeyExists error. (#2241) 2016-12-13 18:31:13 +08:00
51a10a6725 *: Fix issue #2175 (#2188)
*: fix issue #2175
2016-12-07 14:58:22 +08:00
4da8cfd3fa executor: Fix the bug in the statement of "on duplicate..." (#2179)
* executor: fix the statement of "on duplicate..." when updating the PK
handle
2016-12-06 14:04:32 +08:00
74a1c9935d *: add StatementContext argument to functions. (#2157)
Add StatementContext argument to more functions where it is needed.
2016-12-02 23:28:11 +08:00
5230f5eabd variable: define StatementContext. (#2121)
StatementContext is used to hold statement execution mode and state.
As every computation need this, there are many API changes.
2016-11-29 14:25:38 +08:00
0af8520a78 sessionctx/variable: remove dependency on context package. (#2064)
Makes using session variable easier and faster.
Prepare for use session variable to handle data truncated error.
2016-11-23 14:39:48 +08:00
cbf024e8f7 *: clean code. (#1987) 2016-11-10 15:38:22 +08:00
40ad2ba4cb executor: Load data ignore default value is nil and add log (#1953)
* executor: load data ignore default value is nil and add log
2016-11-05 16:35:44 +08:00
1550e76e6c executor: add comments in executor package. (#1876)
* executor: add comments in executor package.
2016-10-31 10:51:17 +08:00
9f615fc5dc table: change Column type to alias of ColumnInfo (#1855)
So we can use a ColumnInfo directly, without coping, reduce memory usage.
2016-10-20 21:48:08 +08:00
ade11fe9f4 *: support history read. (#1734)
* *: support history read.

This commit only handles the case when scheme does not change.
Use history schema will be supported in the following PR.
2016-09-19 15:37:30 +08:00
645b939253 *: simple LOAD DATA escape support (#1658) 2016-09-02 09:57:42 +08:00
ed4649e85d *: Support load data local (#1634) 2016-08-30 09:38:37 +08:00
f2d8b3c108 remove New*** from variable name. (#1644) 2016-08-29 10:18:45 +08:00
2b5d2b15d0 *: Fix mysql_test and make autoid rebase method more efficient. (#1637)
* *: fix mysql_test and more efficient autoid rebase method.
2016-08-25 17:49:51 +08:00
fa06043ce7 More efficient autoid rebase methord (#1631)
Prevent update kv everytime when rebase autoid
2016-08-24 11:18:40 +08:00
c90d91cba9 *: Support insert ignore (#1579)
Ignore duplicate key errors for insert ignore stmt, Fix #1570
2016-08-22 14:18:56 +08:00
27ae3a2f98 *: Cleanup UseNewPlanner (#1614) 2016-08-21 21:20:06 +08:00
e4ac5301ce remove useless code. (#1609) 2016-08-20 16:00:20 +08:00
6e878144e5 support UPDATE and DELETE in new plan (#1582) 2016-08-19 14:35:39 +08:00
cf0be8a233 executor: remove useless getTable function (#1439) 2016-07-13 11:26:43 +08:00
13910f108c ddl: fix ddl update join table. (#1426) 2016-07-12 12:52:18 +08:00
8c504c4795 *: remove splitQualifiedName, joinQualifiedName, and update comments. (#1423) 2016-07-11 16:06:53 +08:00
257df744bb fix bugs of insert and subquery (#1406) 2016-07-07 17:12:14 +08:00
0450ba0b47 *: unify "See url" format (#1391)
* *: unify "See url" format
2016-07-05 11:21:10 +08:00
a75f677900 support set variable, prepare and insert stmt. (#1359) 2016-06-29 18:26:47 +08:00
cad94acb54 Store row data in single kv pair (#1347) 2016-06-28 11:15:09 +08:00
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
10359b0052 rewrite executor. (#1294)
* rewrite executor.
2016-06-07 20:32:15 +08:00
86fe54dadc *: Fix issue 1118 (#1259)
* *: fix issue 1118
2016-05-26 12:49:43 +08:00
622f8fca2a *: refactor, move index and column into table package. (#1251) 2016-05-24 11:08:15 +08:00
965e704412 executor: makes dirty table supports XAPI. (#1245) 2016-05-24 10:53:17 +08:00
4eab06df0d *: Fix issue 1135 (#1188)
* *: fix issue 1135

* tidb_server: set the logging level to error
2016-05-03 21:22:28 +08:00
c26dfd54e4 executor: Change interface to datum in executor. (#1103)
Change interface to datum in executor.
2016-04-20 09:52:23 +08:00
08bf548700 *: Fix replace statement conflict with multiple row bug.
Fix: https://github.com/pingcap/tidb/issues/1012
2016-03-25 16:40:12 +08:00
211a3c0c9c executor: Fix replace statement bug when handle is changed.
Fix: https://github.com/pingcap/tidb/issues/989
When replace row we should check if handle is changed.
2016-03-25 11:04:28 +08:00
xia
6604c81f5a *: fix issue#996 and handle prepared retry 2016-03-24 12:08:53 +08:00
xia
7a7026e750 *: add a null kind judgment in the update statement and update comments 2016-03-18 14:29:57 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
ce531c7f0d executor: fix issue959 and add tests 2016-03-10 15:13:18 +08:00
xia
8729b45bb6 *: add tests 2016-03-09 16:52:52 +08:00
xia
c3e3a7c580 *: fix issue 827 2016-03-08 18:07:44 +08:00
d5941446c2 table: replace interface{} with Datum in table. 2016-03-02 21:01:20 +08:00
af131d2127 executor: replace Executor interface{} with Datum. 2016-03-02 16:13:25 +08:00
043ebd5ec8 *: Refactor package organization
1. Move evaluator from optimizer to root dir.
2. Move builtin from expression to evaluator.
3. Remove expression package.
2016-03-02 13:48:22 +08:00
09fdc21529 *: Remove field package
It is useless when we remove field.ResultField
2016-03-01 16:32:16 +08:00
2c66123d72 executor: use struct{} for map value. 2016-02-19 16:24:43 +08:00
b47cf737c8 *: add Table.Seek method and use handle for RowKeyEntry.
Avoid calling `table/tables` methods in `executor`, makes `Table` interface independent.
2016-02-19 14:31:04 +08:00