Commit Graph

1204 Commits

Author SHA1 Message Date
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
826ce6fb5d builtin: add oct built-in function (#2835) 2017-03-17 18:14:58 +08:00
946f90b8c6 fix UNIX_TIMESTAMP NULL (#2852) 2017-03-17 17:40:10 +08:00
5f9d680a00 expression: keep the return value of builtin conv consistent with mysql (#2842) 2017-03-17 17:12:14 +08:00
901040ae5b builtin: add make_set built-in function (#2831) 2017-03-17 13:02:51 +08:00
1f5e76bc9f builtin: add pi built-in function (#2836) 2017-03-17 11:57:06 +08:00
961386d31d builtin: add exp built-in function (#2847) 2017-03-16 07:50:15 -05:00
a5d87a4678 implement some builtin functions: acos, asin, atan (#2828) 2017-03-16 14:31:08 +08:00
6e27871b63 builtin: add lpad built-in function (#2838) 2017-03-16 11:21:45 +08:00
b8b84dde30 util/types: convertToMysqlTime will truncate hh:mm:ss part for Date type (#2808) 2017-03-10 19:45:15 +08:00
754c58b188 expression: Use Datum.ToBytes() in AESEncrypt/Decrypt (#2783) 2017-03-05 09:33:12 -06:00
8934e0c4a0 builtin: add sha/sha1 built-in function (#2781)
* mod: add sha/sha1 built-in function

* Address comment

* unify  return style

* address comments, add some test cases
2017-03-05 18:00:49 +08:00
0391820318 experssion: implement MD5 builtin function (#2780)
* experssion: implement MD5 builtin function
2017-03-05 02:58:47 -06:00
da52b47c39 expression: make values function underministic. (#2753) 2017-02-28 15:07:03 +08:00
62340db3c0 mysql: change the default decimal for datetime. (#2694) 2017-02-21 19:50:54 +08:00
657a74fdf6 *: add parser and definition for all unsupported builtin funcs (part 6) (#2679) 2017-02-21 11:47:39 +08:00
3294103a37 *: add parser and definition for all unsupported builtin funcs (part 7) (#2680) 2017-02-21 11:23:43 +08:00
a202e5085a *:add parser and definition for: (#2677)
BENCHMARK, CHARSER, COERCOBILITY, COLLATION, ROW_COUNT, SESSION_USER, SYSTEM_USER

:q!
2017-02-20 10:41:32 +08:00
41afe4e934 *: add parser and definition for: (#2667) 2017-02-19 17:07:22 +08:00
37977865df *: add max1row info and refine scalar subquery's decorrelation. (#2646) 2017-02-17 19:25:00 +08:00
a8d185d8cb *: add parser and definition for all unsupported builtin funcs (part 3) (#2657) 2017-02-17 16:49:42 +08:00
2bbc3b2525 expression: handle timestampdiff with null argument. (#2665)
Fixes https://github.com/pingcap/tidb/issues/2662
2017-02-17 14:08:06 +08:00
7f8f16f27c *: add parser and definition for all unsupported builtin funcs (part 2) (#2655) 2017-02-17 10:58:33 +08:00
2f07f7141d *: Support basic aes_encrypt/aes_decrypt function. (#2640) 2017-02-16 14:03:44 +08:00