Commit Graph

284 Commits

Author SHA1 Message Date
bbffc220ed *: Tiny cleanup (#1145)
Fix typo
2016-04-23 10:27:13 +08:00
d78e4044cc *: fix misspells (#1143) 2016-04-22 11:30:37 +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
895e9a0d86 *: fix issue#1089 and add tests (#1106) 2016-04-18 17:31:49 +08:00
bfa3ed7a2d *: Fix issue #1071 (#1088)
* *: fix issue#1071 and add tests

* util: use RoundFloat in the ToBool and add tests.
2016-04-14 16:56:24 +08:00
a236ab94f3 xapi/xeval: implement tipb.Expr evaluator. (#1063)
* xapi/xeval: implement tipb.Expr evaluator.

* *: address comment

* xapi/xeval: update import
2016-04-08 14:25:17 +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
e697aa3e7e *: Unify import check format and unify test format 2016-04-06 10:47:44 +08:00
86f4459543 util: Reserve mysql.Time change. 2016-03-31 18:49:17 +08:00
beb76cde02 Util: a optimization of mysql.* in Datum
We can use the space of Datum to save mysql.* to save the cost of interface.
2016-03-30 19:50:14 +08:00
8552e1fe43 Address comment. 2016-03-30 13:52:03 +08:00
136e405c04 Util: a optimization of mysql.Bit in Datum
We can use the space of Datum to save mysql.Bit to save the cost of interface.
2016-03-30 13:13:50 +08:00
921f65f259 Merge pull request #1026 from pingcap/busyjay/simplify-number-encode
util: Simplify number encoding
2016-03-29 21:18:33 +08:00
1bd25a14d8 store/localstore: add local store xapi support. 2016-03-29 20:33:24 +08:00
b92b1e6c62 simplify number encoding 2016-03-29 19:12:30 +08:00
afdf9a4ef6 Change mysql.Time to ptr in datum.
In this way, we can save the cost of the alloc of mysql.Time in interface.
In the future, we will change all mysql.Time to ptr to save the cost of copy mysql.Time struct.
2016-03-29 18:42:16 +08:00
08510fef0e util/codec: do not modify data while decoding bytes.
Decoding method should not modify the original data.
2016-03-29 12:08:30 +08:00
38f77b979c utll/codec: fix decimal codec 2016-03-28 19:58:25 +08:00
c3461363bf Merge pull request #1014 from pingcap/shenli/issue-1012
executor: Fix replace statement conflict with multiple row bug.
2016-03-25 16:49:55 +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
419f244031 evaluator: change interface to datum in evaluator package.
Change the remaining string functions.
2016-03-25 12:01:58 +08:00
0157bcddc1 executor: add XAPI executor. 2016-03-25 10:21:59 +08:00
1662e7ed68 xapi: add xapi functions. 2016-03-23 17:29:05 +08:00
c960c81d86 evaluator: Change the interfaces of builtinConcat to datums.
Change the interfaces of builtinConcat to datums.
2016-03-21 16:31:03 +08:00
15356cdd88 tidb: remove RestrictedSQLExecutorKey variable in context.
This variable was intended to prevent restricted SQL from being committed.
But it is executed at statement level, will never be committed, so this is not needed.

Also, when begin a new transaction in executing restricted SQL,
If 'autocommit' is 'on'. This variable makes the new transaction into a unwanted `InTrans` state,
so following statements will not be autocommited.
2016-03-17 10:31:56 +08:00
47cb1d6626 evaluator: change math and time parma interface to datum
Change math and time parma interface to datum.
2016-03-16 13:03:54 +08:00
65fd9a77c6 Change bool to int64. 2016-03-11 20:27:01 +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
f1db0e42ef types: Fix i386 float to uint error
uint64(float64(-1)) will be 0. So we cast float64 to int64 first.
2016-03-08 15:53:50 +08:00
ac12b71714 *: replace interface{} with Datum in convert. 2016-03-07 14:11:17 +08:00
11942ab3a1 util/types: fix compare datum. 2016-03-04 14:35:35 +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
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
43a6064395 *: Cleanup license 2016-03-02 14:02:26 +08:00
dec809a4aa *: address comment. 2016-03-02 10:39:32 +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
784f135938 *: Remove duplicate getRows function 2016-03-01 15:55:21 +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
d9f98132ee ast: introduce 'Datum'
Datum is a value box intended to replace 'interface{}' for better performance and easier to use.
2016-03-01 10:54:59 +08:00
68eb8e567e *: remove old code 2016-02-29 11:40:32 +08:00
32c6ee2cbf executor: support Explain 2016-02-24 17:46:59 +08:00
138a40eca7 *: Support grant stmt in new plan. 2016-02-17 14:51:07 +08:00
cc9d8acd95 fix arm/386: use int64 explicitly for segmentmap related stuff 2016-02-14 16:17:42 +01:00