e45c31b89d
Merge pull request #754 from hhkbp2/complete-adddate,subdate-functions
...
add ast evaluation for date arith
2015-12-29 14:35:00 +08:00
405e6c57d4
add ast evaluation for date arith
2015-12-29 11:42:02 +08:00
0b99e0440b
*: Move variable errors to sessionctx/variable
2015-12-24 15:27:41 +08:00
cfe157f93f
*: Unify session ID and connection ID
...
This is for Github issue #722 .
1. CONNECTION_ID now can get the real id generate at server side (rather than a session id).
2. Keep session id generation untouched to ensure minimal interface change.
2015-12-21 23:03:39 +08:00
9b1a047f5b
Merge pull request #756 from sllt/master
...
parser: support built-in function pow
2015-12-21 16:26:44 +08:00
33d71ad3b0
Merge remote-tracking branch 'remotes/master'
2015-12-21 13:39:49 +08:00
5d9e7bb4fc
fix built-in/pow test
2015-12-21 13:30:01 +08:00
0539de5252
built-in/pow add test in parser and delete bultinPower function
2015-12-21 13:02:58 +08:00
01ea0ab60f
Merge branch 'master' into check-args-num
2015-12-21 11:50:32 +08:00
a5b5fd67fa
evaluator: Check function call min and max arguments in new evaluator.
...
For github issue #758 .
2015-12-20 23:17:17 +08:00
0b70b41cfe
builtin/time: fix one bug in function mapping
...
The max arg should be 1, which means accept one argument.
2015-12-20 19:31:23 +08:00
7822670132
builtin/time: Use mysql.Duration instead of mysql.Time and add length check
2015-12-20 16:47:10 +08:00
8d938f32ab
builtin/time: Add tests for the fsp argument in builtinCurrentTime()
2015-12-20 14:21:58 +08:00
8d0bf06cd5
builtin/time: Add tests in parser and support the fsp argument
2015-12-20 13:34:39 +08:00
218457791c
builtin/time: Add tests for CURRENT_TIME(), CURTIME()
2015-12-20 11:07:51 +08:00
8a0a7544bd
parser: support built-in function pow
2015-12-20 00:52:20 +08:00
c01879ba2e
parser: support built-in function pow
2015-12-19 23:51:04 +08:00
1b0c2e38cf
builtin/time: support CURRENT_TIME(), CURTIME()
...
For github issue #236 .
2015-12-19 22:29:13 +08:00
1e1ef8a0bd
*: Support connection_id()
...
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
d44db8b272
Merge pull request #651 from pingcap/coocood/new-plan
...
optimizer, executor: Use new plan for simple select statement.
2015-12-09 17:37:26 +08:00
a54b712137
expression: remove unnecessary todo comment.
2015-12-05 20:09:35 +08:00
3ba316fe55
optimizer, executor: use index range
2015-11-25 21:44:55 +08:00
242444b182
Merge branch 'master' into coocood/new-plan
2015-11-24 14:17:27 +08:00
d8ae7c1e36
*: Make go vet happy
2015-11-23 13:19:12 +08:00
49bc1c8d9c
executor: fix bugs, pass more tests.
2015-11-18 17:19:43 +08:00
9af46bbdb6
Merge branch 'master' into coocood/new-plan
2015-11-18 10:06:35 +08:00
c01af56fc3
executor, optimizer: new executor and optimizer implementation
2015-11-13 23:24:10 +08:00
415085546b
Merge branch 'master' into zimuxia/issue525
...
Conflicts:
expression/variable.go
parser/scanner.l
plan/plans/show.go
plan/plans/show_test.go
stmt/stmts/set.go
2015-11-09 20:22:05 +08:00
f35ec29b6c
*: rename GlobalSysVarAccessor to GlobalVarAccessor,
...
use GetSysVar and GetStatusVar.
2015-11-09 20:02:49 +08:00
b803cabc2f
Merge pull request #544 from pingcap/shenli/refactor-globalvar
...
*: Use Bind/Get global sysvar accessor instead of type assertion
2015-11-09 16:55:03 +08:00
fc980462a0
Merge pull request #524 from pingcap/zimuxia/issue-419
...
parser: Support ADDDATE and SUBDATE function
2015-11-09 13:25:17 +08:00
7d49f39f2e
*: Use Bind/Get global sysvar accessor instead of type assertion
2015-11-09 13:02:30 +08:00
8c99975ac4
*: fix mybatis test error.
2015-11-07 16:57:10 +08:00
3b1f107d4b
*: add comments
2015-11-06 21:29:08 +08:00
b98b6920b9
*: add comments
2015-11-06 21:23:11 +08:00
5ce49e128d
*: add test
2015-11-06 17:33:05 +08:00
69b2c31291
expression: support adddate or subdate function with days form
2015-11-06 17:30:52 +08:00
df4cc43703
expression: update comments
2015-10-31 17:09:01 +08:00
480f7f358c
*: use a const int value instead of string
2015-10-30 14:50:12 +08:00
414ae7b732
*: rename DateCast to DateArith
2015-10-30 13:30:44 +08:00
c7e3951f73
expression: update the variable name in evalArgs
2015-10-30 11:48:36 +08:00
ebd6cce017
expression: rename date_add_test.go to date_cast_test.go and
...
add date_sub operation test
2015-10-30 11:30:16 +08:00
a1de92a96b
expression: add date_sub operation
2015-10-30 11:28:10 +08:00
47677955e5
expression: rename date_add.go to date_cast.go and rename VisitDateAdd
...
to VisitDateCast
2015-10-30 11:24:37 +08:00
ad94d351e5
expression: keep replace in order in builtin
2015-10-29 09:29:57 +08:00
784a677317
expression: handle DataItem nil
2015-10-28 21:08:38 +08:00
d48ac8ca26
Merge branch 'master' into zimuxia/replace-func
2015-10-28 17:53:50 +08:00
a39d9daf86
expression: rename Val to val
2015-10-28 17:52:30 +08:00
ab735686f0
expression: add replace function
2015-10-28 17:52:02 +08:00
628922ae35
Merge pull request #439 from pingcap/shenli/string-literal
...
Shenli/string literal
2015-10-28 14:54:51 +08:00