Commit Graph

440 Commits

Author SHA1 Message Date
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
3f4c71bdbb *: add parser and definition for all unsupported builtin funcs (part 1) (#2649)
* *: add parser and definition for builtin funcs:
bin, elt, exportSet, format, fromBase64, insert, instr, loadFile, lpad
2017-02-16 11:37:42 +08:00
59e8ccf0a5 expression: workaround for wrong timediff function input (#2611) 2017-02-08 20:57:27 +08:00
395a9c6129 *: add builtin function UTC_TIMESTAMP (#2592)
* *: add builtin function UTC_TIMESTAMP
2017-02-05 02:16:18 -06:00
15d2065287 Support builtin function timestamp (#2498) 2017-02-05 13:06:27 +08:00
1c01055496 plan: add Contains function on Schema (#2588)
Improve readablity.
2017-02-04 14:25:12 +08:00
006436a14a expression: use isDeterministic interface. (#2570) 2017-01-30 15:42:45 +08:00
e68dcf77dc *: remove ctx from function args. (#2566) 2017-01-28 18:44:02 +08:00
7e92364dd1 expression: refactor time function. (#2560) 2017-01-26 10:33:05 +08:00
b9e62d69ef expression: make and/ or expression faster. (#2561) 2017-01-26 00:02:02 +08:00
26d54c8866 expression,util/stringutil: move LIKE pattern match to stringutil package (#2548) 2017-01-25 22:28:36 +08:00
3c9bb15d29 expression: refactor functions. (#2556) 2017-01-25 20:34:41 +08:00
f6547abc7a expression: refactor function. (#2551) 2017-01-25 20:27:54 +08:00
d2db2b3c15 expression: refactor functions. (#2555) 2017-01-25 20:17:27 +08:00
a534a50ff4 expression: refactor functions. (#2558) 2017-01-25 19:55:02 +08:00