Commit Graph

818 Commits

Author SHA1 Message Date
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
0337e201bd executor: analyze index should keep order (#3887) 2017-07-25 23:38:06 +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
8ebe4c2549 plan, executor, expression: refactor explain (#3809) 2017-07-25 14:12:48 +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
4dadd2dc88 executor: sort handles for double read. (#3865) 2017-07-24 17:59:54 +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
a9b1a83f31 executor: fix a bug in index join. (#3860) 2017-07-23 15:42:19 +08:00
ff7de9972f expression, executor, plan: rewrite builtin function unhex. (#3830) 2017-07-20 19:56:12 +08:00
a19ad3f480 ddl: support create index with type and comment (#3814) 2017-07-20 19:01:14 +08:00
b55245dd83 executor: a naive support for load data fields enclosed by (#3759) 2017-07-20 15:08:24 +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
fc9d5eb215 executor, codec: fix bug when join 2 decimal keys. (#3797) 2017-07-19 11:42:17 +08:00
8b289ed94a expression, executor, plan: rewrite builtin function atan (#3788) 2017-07-19 11:29:37 +08:00
e0e77d3bac *: reduce analyze table read when table contains PK (#3783)
* *: reduce analyze table read when table contains PK

* fix ci

* *: address comment

* fix ci

* statistics:make comment more accurate
2017-07-18 05:07:17 -05:00
466e48c3de executor, util: fix bug when the join's keys have different types. (#3784) 2017-07-18 16:28:08 +08:00
287d563481 expression, executor, plan: rewrite builtin function acos (#3789) 2017-07-18 14:51:37 +08:00
d8aaa222c8 *: make SET TRANSACTION ISOLATION LEVEL READ COMMITTED take effect (#3619) 2017-07-17 19:16:23 +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
bc713303fc ddl: fix modify column behavior about primary / unique key (#3748) 2017-07-17 15:49:57 +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
ddc104a2a6 parser: support for setting global variable with on and off (#3631) 2017-07-14 11:16:59 +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
300dd5c7c1 expression, executor, plan: rewrite builtin function substring/substr. (#3711) 2017-07-12 18:22:21 +08:00
f024ebbdca *: support show stats_buckets (#3720) 2017-07-12 17:37:53 +08:00
1e1d01ad10 executor: fix explicitly insert null value into timestamp column (#3646)
create table t (ts timestamp);
insert into t values (null);
This should insert a null rather than default value.
2017-07-12 17:13:23 +08:00
a0dfa040ef table,tablecodec,util/types: make it possible to read empty enum value (#3664) 2017-07-12 16:42:28 +08:00
f212ef1705 * support show stats_histogram (#3683) 2017-07-11 15:49:11 +08:00
6f6bd5cba5 expression, executor: rewrite builtin function TO_BASE64 (#3598) 2017-07-11 14:56:26 +08:00
1fbcb6252e expression, executor, plan: rewrite builtin function replace. (#3702) 2017-07-11 14:01:31 +08:00
c65ada3ae9 expression,executor: rewrite builtin func LOWER and UPPER. (#3550) 2017-07-11 13:39:18 +08:00
fd7fcdee8d expression, executor: rewrite builtin function CONCAT_WS (#3558) 2017-07-11 13:23:43 +08:00
18f6f66a16 executor, expression: fix cast(-1 as unsigned)(#3704) (#3705) 2017-07-11 11:35:56 +08:00
1cc00cdd57 privilege/privileges: skip privilege check for information_schema database (#3675) 2017-07-11 10:28:12 +08:00
d4b35c7806 executor, expression: rewrite builtin func left and right (#3540) 2017-07-10 20:28:12 +08:00
32159d502f expression, executor: rewrite builtin space function. (#3684) 2017-07-10 17:53:59 +08:00
bd64339e93 plan: first step of join auto-select. (#3623) 2017-07-10 15:21:22 +08:00