Commit Graph

277 Commits

Author SHA1 Message Date
ab53786d33 *: Define the schema change at the table level (#3999) 2017-08-04 17:53:38 +08:00
3d8d1d6f45 *: refine tests. (#4016) 2017-08-04 00:15:20 +08:00
9a40975437 executor, expression: fix floor and ceil when handle int overflow (#3980) (#3981) 2017-08-03 19:01:00 +08:00
722c450ec3 executor: Make union test stable (#4001) 2017-08-03 13:57:39 +08:00
3243b46b62 types: handle zero value in RoundFrac (#3989) 2017-08-02 20:59:33 +08:00
8adac8fe6c *: set low priority for expensive SQL and high priority for point get (#3881) 2017-08-02 13:53:36 +08:00
6921161fde types, expression: cast string as time (#3977)
fix issue #3942
TiDB doesn't treat '.' as a special point, '.' is the fractional seconds part delimiter
2017-08-01 23:35:20 +08:00
d0dcb5b0a6 expression, parser: fix issue #3691, cast compatibility (#3894) 2017-08-01 16:47:38 +08:00
01c1d4c5c5 executor: truncate the trailing spaces for "CHAR[(M)]" types (#3878) 2017-08-01 16:15:25 +08:00
2745333435 parser,plan: support \N shortcut for null (#3943) 2017-08-01 14:16:43 +08:00
3527750130 expression, executor, plan: rewrite builtin function trim. (#3936) 2017-08-01 10:54:31 +08:00
dff73cc6e4 *: Modify the Makefile for go vet (#3900) 2017-07-30 23:02:52 -05:00
9f66dd1931 expression, executor, plan: rewrite builtin function ltrim and rtrim. (#3939) 2017-07-30 21:10:38 -05:00
8df4f7f753 expression, executor: revert typeinfer of cast and binary ops && add TestUnaryNot (#3941) 2017-07-29 09:44:45 +08:00
240dcf8bc1 *: rewrite bitNeg using new expression evaluation architecture (#3937) 2017-07-28 19:14:55 +08:00
640e34dc97 *: rewrite unary not using new expression evaluation architecture (#3925) 2017-07-28 15:34:51 +08:00
e4c104b291 expression, executor, plan: rewrite builtin function PI (#3846) 2017-07-28 11:30:10 +08:00
4203eba42b *: rewrite logicalXor using new expression evaluation architecture (#3899) 2017-07-27 19:52:07 +08:00
b88d3c2bb1 expression, executor: fix duration column <cmp> constant(#3884) (#3918) 2017-07-27 19:13:32 +08:00
5ae3ae9e42 *: rewrite bitAnd using new expression evaluation architecture (#3901) 2017-07-27 06:01:18 -05:00
0d9ea869c2 *: fix set/get var race (#3913)
* *: fix set/get var race
2017-07-27 16:08:20 +08:00
fb16e7364c *: rewrite bitOr using new expression evaluation architecture (#3904) 2017-07-27 14:33:10 +08:00
df4d25b8fd *: rewrite bitXor using new expression evaluation architecture (#3905) 2017-07-27 13:09:36 +08:00
88b5eb23f0 *: rewrite leftShift using new expression evaluation architecture (#3906)
* *: rewrite leftShift using new expression evaluation architecture

* *: rewrite rightShift using new expression evaluation architecture

* tiny change

* fix ci

* tiny change
2017-07-27 09:41:34 +08:00
488365285a *: rewrite rightShift using new expression evaluation architecture (#3907) 2017-07-26 21:13:12 +08:00
5f9bcfe63c *: rewrite logicOr using new expression evaluation architecture (#3903) 2017-07-26 19:48:35 +08:00
e008c6c36a expression: fix #3762, signed integer overflow handle in minus unary scalar function (#3780) 2017-07-26 11:44:00 +08:00
1f0c4cb4e1 expression, executor, plan: rewrite builtin function exp (#3871) 2017-07-26 09:59:27 +08:00
96857eb021 expression, executor: password should return empty string when parameter is null (#3880) 2017-07-25 23:19:12 +08:00
d35acbdf08 types: Fix insert error when column length is zero (#3849) 2017-07-25 18:59:38 +08:00
4175a7e708 expression, executor, plan: rewrite builtin function cot (#3856) 2017-07-25 00:08:58 +08:00
ba85195520 *: rewrite builtin func andand (#3853) 2017-07-24 23:46:49 +08:00
c59d5bc6f7 parser: support two json grammar sugar. (#3854)
`select a->'$.a'` equals to `select json_extract(a, '$.a')`;
`select a->>'$.a'` equals to `select json_unquote(json_extract(a, '$.a'))`.
2017-07-24 14:01:49 +08:00
ff7de9972f expression, executor, plan: rewrite builtin function unhex. (#3830) 2017-07-20 19:56:12 +08:00
e4ea902125 expression, executor, plan: rewrite builtin function ceil (#3819) 2017-07-20 14:32:35 +08:00
37d8ea3e38 expression, executor, plan: rewrite builtin function floor (#3791) 2017-07-19 22:19:01 +08:00
e7f97522b8 expression, executor, plan: rewrite builtin function hex (#3794) 2017-07-19 17:38:12 +08:00
8b289ed94a expression, executor, plan: rewrite builtin function atan (#3788) 2017-07-19 11:29:37 +08:00
287d563481 expression, executor, plan: rewrite builtin function acos (#3789) 2017-07-18 14:51:37 +08:00
e4fc23028f executor: add sort for union test (#3781) 2017-07-17 18:36:29 +08:00
8805688610 expression, executor, plan: rewrite builtin function substring_index. (#3760) 2017-07-17 18:14:16 +08:00
735380c8c6 executor, expression: fix flen inferring in concat when meeting negative length(#3771) (#3777) 2017-07-17 17:59:26 +08:00
2578ae15cd plan, executor_test: fix bug for user variable. (#3776) 2017-07-17 16:35:31 +08:00
6ea235f69f expression, executor, plan: rewrite builtin function log (#3763) 2017-07-17 16:06:47 +08:00
9436c49dc7 expression, executor, plan: rewrite builtin function asin (#3765) 2017-07-17 10:37:42 +08:00
c49bc64465 expression, executor: rewrite built-in bit_length func. (#3722)
* expression,executor: rewrite builtin func lower and upper.

* expression: fix field type for builtin func lower and upper.

* expression: fix bugs for test case.

* expression, executor: refactor builtin func for lower and upper.

* expression, executor: rewrite test case.

* expression: fix bugs for builtin func lower and upper.

* express, executor: rewrite built-in bit_length func.

* expression, executor: fix testcase for bit_length.

* expression, executor: fix bugs for built-in func bit_length.

* expression, executor: fix bugs for built-in bit_length.

* expression, executor: add test case varbinary for built-in func bit_length.

* expression, plan: field length bugs for built-in func bit_length fixed.

* expression: remove unnecessary type check for built-in func bit_length.
2017-07-15 10:36:31 +08:00
c34eead4ad executor, plan: refine typeinfer when UNION (#3756) 2017-07-14 22:09:44 +08:00
e88919f5e5 expression, executor: rewrite built-in function uuid. (#3721) 2017-07-14 10:48:58 +08:00
7294232a9e *: rewrite compare functions using new expression evaluation architecture (#3714) 2017-07-13 19:46:46 +08:00
0da3efabdb expression, executor: rewrite builtin func log10 (#3733) 2017-07-13 12:16:55 +08:00