Commit Graph

188 Commits

Author SHA1 Message Date
52d78136e5 executor: fix bug when the limit value is less than SortBufferSize. (#1085) 2016-04-12 19:37:11 +08:00
bdac8ecafa Merge branch 'master' into hanfei 2016-04-12 14:17:33 +08:00
19310f1511 change format 2016-04-12 13:27:07 +08:00
bebacf4f3a evaluator: just one time eval (#1062)
* evaluator: just one time eval
2016-04-12 12:34:27 +08:00
3a92f567b9 executor: support limit sort 2016-04-12 12:09:25 +08:00
8d9bf2fd6d executor: xapi support desc ordered table lookup. (#1078)
* executor: xapi support desc ordered table lookup.

* *: fix golint comment.

* executor: fix push order for multi-column index.
2016-04-10 18:01:49 +08:00
f5daa55eb6 executor: support xapi expression push down. (#1069)
* executor: support xapi expression push down.

* *: address comment.

* *: fix subquery select from same table.

* executor: add break when matched.

* store/localstore: address comment.
2016-04-09 17:03:29 +08:00
0537b67d2b *: Add more info into TableInfo and fix bug in show create table (#1072)
Fix: https://github.com/pingcap/tidb/issues/1061
2016-04-09 15:59:51 +08:00
0a9ece01c3 *: import 'github.com/pingcap/tipb/go-tipb' (#1067) 2016-04-08 11:07:16 +08:00
08034540f0 *: Add leak test
* *: add leak test and tiny clean up

* *: unify test format and add leak test

Conflicts:
	store/localstore/compactor_test.go
	mysql/error_test.go
*: add leak test
2016-04-07 20:53:45 +08:00
eb941fb12f *: Support mysqldump dump database
1. Fix bug in show tables like with escape char.
2. Parse but ignore sql_cache/sql_no_cache.
2016-04-07 16:25:49 +08:00
204ed5456b *: fix ddl test
Replace tablecodec TableToProto with ColumnsToProto, avoid index out of range panic.
2016-04-06 21:20:18 +08:00
dc8bd3e337 *: optimization, do not read not referenced columns. 2016-04-06 13:29:21 +08:00
df71593935 *: add tests for xapi 2016-04-01 11:26:29 +08:00
1bd25a14d8 store/localstore: add local store xapi support. 2016-03-29 20:33:24 +08:00
xia
4319909e08 *: unify error format in infoschema package 2016-03-29 11:10:56 +08:00
92cfb941bb Merge pull request #1013 from pingcap/coocood/remove-select-points
xapi/tipb: remove points in select request.
2016-03-25 18:07:30 +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
3ee6c17389 executor: do not append max int64 handle as pb range. 2016-03-25 14:50:05 +08:00
64cf670b7e xapi/tipb: remove points in select request.
Points was introduced to reduce the data size if there are many point ranges.
But it makes code more complex than expected, and the reduced size is trivial compares to the total package size.

Remove it to simplify code.
2016-03-25 13:07:49 +08:00
93c06f236c Merge pull request #1011 from pingcap/shenli/fix-989
executor: Fix replace statement bug when handle is changed.
2016-03-25 11:35:51 +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
0157bcddc1 executor: add XAPI executor. 2016-03-25 10:21:59 +08:00
xia
6604c81f5a *: fix issue#996 and handle prepared retry 2016-03-24 12:08:53 +08:00
cda31ae7ab executor: Fix set multiple variables bug
Fix: https://github.com/pingcap/tidb/issues/998
Refactor some old code.
2016-03-23 17:42:55 +08:00
xia
4a2fe15c63 Merge remote-tracking branch 'origin/master' into zimuxia/issue-962
Conflicts:
	ddl/ddl.go
2016-03-18 14:38:59 +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
4f90f76477 executor: update TestReplace 2016-03-18 12:23:55 +08:00
xia
15c0319294 *: fix issue 962 and handle other questions about auto increment. 2016-03-18 12:23:55 +08:00
ce96978182 *: Add index option in IndexInfo
1. Add index option in IndexInfo.
2. Show index option content when running show index statement.
2016-03-16 22:09:11 +08:00
0fa8df585a evaluator: change SetDatum and implement ToBool, ToInt
Change SetDatum and implement ToBool, ToInt.
2016-03-11 19:58:40 +08:00
5a81a2f5d4 evaluator: change Get/SetValue to Get/SetDatum.
Chnage Get/SetValue to Get/SetDatum in evaluator.go .
2016-03-11 13:37:58 +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
ac12b71714 *: replace interface{} with Datum in convert. 2016-03-07 14:11:17 +08:00
515f193bd2 *: Remove coldef package
There are lots of redundancies between ast and coldef. So we remove
coldef.
2016-03-05 19:11:04 +08:00
449b34f24b *: replace interface{} with Datum in codec. 2016-03-04 12:54:34 +08:00
ff94659286 *: replace interface{} with Datum in index range 2016-03-03 22:15:17 +08:00
3d06fb90fe *: replace interface{} with Datum in kv.Index 2016-03-03 11:41:09 +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
3a25f68469 *: replace interface with Datum in ast.Row. 2016-03-02 15:32:42 +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
e71e25e31c util/types: new Compare implementation with Datum. 2016-03-02 10:22:21 +08:00
xia
404e1348bd Merge branch 'master' into zimuxia/move-test 2016-03-02 09:56:18 +08:00
xia
539d2e5de2 *: move statement tests to executor package 2016-03-01 20:23:40 +08:00
09fdc21529 *: Remove field package
It is useless when we remove field.ResultField
2016-03-01 16:32:16 +08:00
9f81af66ee Merge remote-tracking branch 'origin/master' into shenli/rm-rset-stmt-plan 2016-03-01 14:00:29 +08:00
b5fbabc05e *: Remove plan.go/stmt.go/rset.go
Move interface into ast and remove interfaces.
2016-03-01 13:53:48 +08:00