Commit Graph

300 Commits

Author SHA1 Message Date
e3597b6548 Add Datum.IsNull() fucntion (#1298)
Add IsNull function for Datum to simplify null check.
2016-06-07 23:35:25 +08:00
75f089d056 util/types: clean up, removed unused code. (#1281) 2016-06-02 10:42:36 +08:00
97df813e92 fix parsing error caused by single quote transformation (#1274)
fix parsing error caused by single quote transformation
2016-06-01 17:41:20 +08:00
ced939df5d types: Tiny cleanup (#1270)
Fix typo
2016-05-31 12:49:43 +08:00
458671af7e util/codec: unify decimal codec with tikv. (#1268) 2016-05-30 17:50:23 +08:00
4c339c567d util/types: parse float with best effort. (#1264)
For example, "1.1a" should parsed to 1.1 rather than 0.
2016-05-30 14:26:41 +08:00
05043bfb0c *: fix decimal codec bug, see #1265. (#1266) 2016-05-30 10:34:14 +08:00
d3cb90559b *: change Context method FinishTxn to CommitTxn and RollbackTxn. (#1253)
Makes it easier to read.
2016-05-24 13:17:01 +08:00
e22d8d06da *: xapi push down mysql.Duration and mysql.Decimal. (#1243) 2016-05-20 18:30:30 +08:00
cf6d1f5f97 *: do not set null column value to save storage space. (#1236) 2016-05-17 19:14:28 +08:00
55ed68ca6c add builtin-reverse func (#1224) 2016-05-13 20:53:55 +08:00
f6e7a331d0 codec: fix datum convert to float32. (#1217) 2016-05-10 16:07:18 +08:00
0841dbef9b *: Support builtin function round(X), round(X, D) (#1208)
Support builtin function round(X), round(X, D)
2016-05-07 13:38:02 +08:00
3671f3958f xapi: support IN expression push down. (#1147)
* xapi: support IN expression push down.
2016-04-25 19:50:33 +08:00
5bbb710b76 arena: tiny clean up. 2016-04-23 15:19:31 +08:00
15db558224 arena: clean up tests. (#1150) 2016-04-23 02:13:34 -05:00
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