Commit Graph

27 Commits

Author SHA1 Message Date
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
631045ce5f parser: address comment. 2015-12-24 10:47:37 +08:00
bfd188d844 parser: remove YYParse function, use Parse and ParseOne instead. 2015-12-23 18:25:28 +08:00
4f551e17da evaluator: Check return values from valid call expressions in funcCall test. 2015-12-21 15:13:09 +08:00
55d12c184f evaluator: Refine tests for funcCall.
1. Remove the fake builtin.Func.
2. Fix one bug in handling unlimited arguments upper bound.
2015-12-21 14:45:51 +08:00
a5dbd000dc evaluator: Add tests for funcCall. 2015-12-21 11:45:44 +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
1e1ef8a0bd *: Support connection_id()
Fix: https://github.com/pingcap/tidb/issues/715
2015-12-14 14:40:55 +08:00
4436aff284 ast: use IsConstant function
address comment
2015-12-14 10:37:34 +08:00
6ab3b3cd6b evaluator: use FlagConstant 2015-12-14 10:37:34 +08:00
c970ff6d4d ast: move flag setter to ast 2015-12-14 10:37:34 +08:00
30ee5fd354 evaluator: funcCast set value directly without types.DataItem.
Other expression check `expr.GetValue() == nil` returns false when we wrap nil in DataItem.
2015-12-11 12:21:22 +08:00
2050c8dceb evaluator: fix unary evaluation
When unary operation is evaluated more than once, the old not nil value is not set when new value is evaluated to nil.
2015-12-10 13:15:52 +08:00
c674915062 evaluator, plan: address comment. 2015-12-09 15:13:45 +08:00
4f565159d0 optimizer, executor: remove panic and Fatal, returns error instead. 2015-12-09 14:53:41 +08:00
d5f82288d8 evaluator: use terror 2015-12-09 12:38:29 +08:00
77443be4e5 optimizer, executor, evaluator: address comment. 2015-12-07 19:56:39 +08:00
949d92d6df optimizer, executor: replace panic with log.Fatal 2015-12-07 18:39:51 +08:00
429716fc37 optimizer, executor: address comment. 2015-12-07 16:16:34 +08:00
9448297dd3 optimizer: rename binder to resolver. address comment. 2015-12-07 11:40:24 +08:00
44e2c7c8df optimizer/evaluator: add more tests. 2015-12-02 13:17:28 +08:00
01d33e9261 evaluator: add tests. 2015-11-30 20:58:50 +08:00
19d52ba0e9 optimizer, executor: pass test. 2015-11-26 21:17:44 +08:00
cf9a23d23b optimizer, executor: build ranges for more expression, pass more tests. 2015-11-26 20:02:28 +08:00
96ff5b0e25 executor: use index. 2015-11-24 14:16:27 +08:00