Commit Graph

477 Commits

Author SHA1 Message Date
42dec329fe session: return correct LastInsertID. (#3071)
When insert into an auto_increment column with a given value, the last insert id write to client should be the value.
2017-04-18 18:53:24 +08:00
4c9452f944 Builtin: 'LOCATE' dealing with case sensitivity and utf8 characters. (#2960) 2017-04-18 17:23:00 +08:00
05f9a5f838 builtin:func to_base64() (#3070)
implement to_base64 and fix some case for from_base64
2017-04-18 16:01:59 +08:00
d52b257fb3 builtin: implement sec_to_time function (#3026) 2017-04-17 17:51:26 +08:00
8ce4a6ad14 builtin: add builtin-function 'to_seconds' (#2984) 2017-04-17 10:27:36 +08:00
97bfafa702 *: Use AggregationFunction instead of evaluate in aggregation (#3040) 2017-04-14 19:49:00 +08:00
2cce6080d6 util/types: use GenByArgs for ErrOverflow. (#3038)
ErrOverflow has changed to a format, we need to use GenByArgs to get a valid message.
2017-04-12 13:12:41 +08:00
f5270adcf9 fixed math operation returned wrong error code (#3017) 2017-04-12 11:37:38 +08:00
d25805b639 expression: use MVMap for distinct checker. (#3033)
Reduce memory allocation and GC overhead.
2017-04-11 15:44:10 +08:00
543a368e16 expression: add NewDistAggFunc interface for mock tikv. (#3009) 2017-04-10 19:13:56 +08:00
9e4961a792 built-in: add time-to-sec built-in function (#2987) 2017-04-10 18:23:33 +08:00
1ec85a7b1c *: add three more builtin definitions (#3016) 2017-04-10 14:26:16 +08:00
d88fdecb7b expression: fix pb2expr panic. (#3020)
every time we get builtinFunctionSignature, we should copy it.
A temp fix is to get function class directly.
2017-04-10 11:23:05 +08:00
b1a1e94bd5 expression/builtin: fix inet6_ntoa (#3012) 2017-04-07 19:06:54 +08:00
445116a415 Builtin: add builtin function 'TO_DAYS' (#2983) 2017-04-07 12:35:00 +08:00
3d21df2f74 expression: let store be able to use expression pkg. (#2999) 2017-04-06 17:52:28 +08:00
a040dc8421 Builtin: add builtin function "TIMESTAMPADD" (#2992) 2017-04-06 12:41:32 +08:00
61228e5a96 add builtin function inet_aton (#2882) 2017-04-05 23:14:32 +08:00
a125e5378c add mysql builtin function cos,from_base64,tan,cot (#2977) 2017-04-05 22:35:28 +08:00
aaa6184670 *: implement index nested loop join (#2945) 2017-04-01 15:12:20 +08:00
f66c46953d *: remove MySQL enterprise functions definition. (#2973) 2017-03-31 18:03:19 +08:00
5516ca56e6 builtin: add compress funciton (#2879) 2017-03-31 13:33:00 +08:00
ff3abdfd27 builtin: add format built-in function (#2883) 2017-03-31 13:21:08 +08:00
7b52245ed9 builtin: add quote built-in function (#2845) 2017-03-31 13:10:28 +08:00
904101210b executor: fix decode row panic (#2961)
Index Schema may be replaced by aggregation schema, which may be longer than
original schema length, in this case decode row will panic.
2017-03-30 13:15:04 +08:00
a2eb611ea5 *: add built-in function is_ipv4 (#2864) 2017-03-29 15:31:57 +08:00
3bfc8207bc expression: fix bug about function equal logic. (#2951) 2017-03-29 14:38:39 +08:00
1253d2b87b builtin: get_format function implemented. (#2932) 2017-03-29 09:11:47 +08:00
7031e28ab1 Built-in Function: bin (#2924) 2017-03-29 09:07:12 +08:00
9f17a88377 fix some typo in comments (#2943) 2017-03-29 08:55:49 +08:00
Van
c83bdda7b0 builtin: add random-bytes function (#2927) 2017-03-28 14:02:45 +08:00
60ba388e0c *: check visibility for show databases and tables (#2934) 2017-03-28 11:28:50 +08:00
0e172acd8e Add a controller in Selection to control the conditions of the below scan plan. (#2834)
Prepare for IndexLookupJoin.
2017-03-28 09:58:49 +08:00
5bb70abbe5 * built-in: add "Sin(x)" function (#2885) 2017-03-27 00:44:46 +08:00
e95ff609b7 builtin function: add inet_ntoa builtin function (#2887)
* add inet_ntoa builtin function
2017-03-25 23:08:19 -05:00
277893a9a4 builtin: add maketime built-in function (#2889) 2017-03-25 17:33:58 +08:00
d1a8cd4da1 builtin: add insert built-in function (#2855) 2017-03-25 17:00:56 +08:00
88bfb59db2 mod: add sha2 built-in function (#2914)
* mod: add sha2 built-in function
2017-03-24 05:44:52 -05:00
bd0220c555 builtin: add quarter built-in function (#2919)
Implement the QUARTER built-in function.
2017-03-24 18:24:47 +08:00
2c3e731f81 builtin: add instr built-in function (#2857) 2017-03-22 14:21:25 +08:00
ee322f7447 fix DATE_FORMAT func error (#2908) 2017-03-22 11:52:50 +08:00
a3777f4cac builtin: add uuid built-in function (#2875) 2017-03-21 18:06:11 +08:00
4ce80d8ec1 fix bug, move IngoreTruncate to test code (#2898) 2017-03-21 10:09:14 +08:00
4a3dc464e1 builtin: add any_value built-in function (#2866) 2017-03-20 18:34:07 +08:00
52100cb986 Add builtin function ord (#2881) 2017-03-20 14:15:15 +08:00
aaee21f864 builtin: add degrees built-in function (#2844) 2017-03-20 12:51:46 +08:00
67e89f3dd4 builtin: add elt built-in function (#2870) 2017-03-20 12:26:12 +08:00
77c21d0d34 expression: tiny cleanup (#2876) 2017-03-20 12:01:43 +08:00
d0699bded8 builtin: add is_ipv6 built-in function (#2872) 2017-03-19 10:03:12 +08:00
e03d952b41 builtin: add radians built-in function (#2841) 2017-03-18 13:15:55 +08:00