Commit Graph

260 Commits

Author SHA1 Message Date
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
f703633295 Merge pull request #861 from pingcap/shenli/agg-sum
*: Support sum in new plan
2016-01-20 22:24:28 +08:00
eba936c579 *: Address comment 2016-01-20 21:49:29 +08:00
686dc63352 *: Support sum in new plan 2016-01-19 22:58:11 +08:00
ff1ad881de Merge pull request #858 from pingcap/iamxy/fix-order-binary
util/types: fix order by binary
2016-01-19 20:35:29 +08:00
95e0ebd8f2 Merge branch 'master' into iamxy/fix-phpmyadmin 2016-01-19 20:26:26 +08:00
bde19d022d util/types: use RawData() to enhance readability 2016-01-19 16:14:41 +08:00
31a78b75f2 util/types: fix order by binary operand
In Orderby Clause, as using BINARY operator to cast the  following operand to a binary string, here meet an error. Improved IsOrderedType() to handle it.
2016-01-19 13:46:16 +08:00
4e38c95411 util/codec: tiny clean up
make realloc more clearly
2016-01-19 11:38:29 +08:00
420c589718 *: Fix a bug in type inferrer
1. Add missing CaseExpr.
2. Add field type merge rules for hybrid field type expressions.
2016-01-18 22:56:24 +08:00
5266298560 executor/converter,ast: Fix bugs for running phpmyadmin
1. Add ShowGrants to oldShow convert, phpmyadmin can run up now.
2. Fix a bug in Accept of FuncLocateExpr, handling the Pos arg of LOCATE() not given.
2016-01-18 12:17:18 +08:00
cf19afc08b *: Add test cases for type inferrer 2016-01-17 00:16:44 +08:00
d6f63b439a *: Fix missing result type bug 2016-01-16 16:52:55 +08:00
8eb866f476 distinct: Add a new distinct checker 2016-01-12 00:03:45 +08:00
926fbab7c9 *: address comment, add more tests. 2015-12-31 12:01:06 +08:00
0376f4ae5c Merge pull request #808 from pingcap/ngaut/reduce-allocation
util: Reduce allocation.
2015-12-29 11:04:38 +08:00
202f56b4b8 Address comments 2015-12-29 10:51:46 +08:00
3b56db1566 Merge pull request #806 from pingcap/disksing/reduce-string-bytes-convert
*: reduce string bytes convert
2015-12-28 20:09:57 +08:00
bd3681ec0e *: minor changes 2015-12-28 12:49:26 +08:00
bd3db841fa util: Reduce allocation. 2015-12-28 12:30:56 +08:00
39624b3949 *: address comment 2015-12-28 11:07:07 +08:00
48c8b75edb *: reduce string bytes convert 2015-12-25 20:52:36 +08:00
0b99e0440b *: Move variable errors to sessionctx/variable 2015-12-24 15:27:41 +08:00
4c840db52a util/types: address comment. 2015-12-24 13:04:04 +08:00
c05500ddc9 util/types: fix DefaultFieldTypeForValue 2015-12-24 12:30:09 +08:00