Commit Graph

88 Commits

Author SHA1 Message Date
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
ebfcd7d90a expression: rewrite builtin function: CONVERT (#4417) 2017-09-08 11:08:39 +08:00
48c0ecae1c expression: rewrite builtin function: FIELD (#4419) 2017-09-07 20:13:09 +08:00
d82a36b562 expression: rewrite builtin function: INSERT (#4414) 2017-09-07 19:26:59 +08:00
2736812381 expression: rewrite builtin function: EXPORT_SET (#4434) 2017-09-07 18:02:15 +08:00
62b6a9961b expression: rewrite builtin function: FORMAT (#4416) 2017-09-06 20:01:00 +08:00
ee23ae54a6 Fixed word misspelled (#4448) 2017-09-06 12:03:51 +08:00
55bbc41069 expression: adjust getFunction context.Context param position (#4400) 2017-09-01 16:03:19 +08:00
7f6d60a037 expression: builtin function OCT() handle binary value mistakenly. (#4369) 2017-08-30 10:48:36 +08:00
b7aa9137b2 expression: rewrite builtin function: MAKE_SET, QUOTE (#4318) 2017-08-29 10:06:19 +08:00
f02a615bed expression: remove useless error return (#4347) 2017-08-28 20:34:30 +08:00
ea29a1c30d expression: Support more types when getting default flen and decimal (#4236) 2017-08-28 02:26:07 -05:00
6c44eb6eee *: fix bug of union type cast (#4322) 2017-08-26 15:24:52 +08:00
acff4b60ec expression: rewrite builtin function: FIND_IN_SET (#4247) 2017-08-21 11:31:22 +08:00
97282565fb expression: rewrite builtin function: OCT (#4154) 2017-08-15 13:41:51 +08:00
d5b860b126 expression: throw unsupported error during type infer stage (#4156) 2017-08-14 11:33:04 +08:00
91a463670a expression: rewrite builtin function: ELT (#4124) 2017-08-12 10:24:20 +08:00
dcf4cbb2f1 expression: rewrite builtin string function: REVERSE (#4042) 2017-08-11 16:21:35 +08:00
0bf26a1df7 expression: Refactor return sig.setSelf(sig), errors.Trace(c.verifyArgs(args)) (#4123) 2017-08-11 14:12:45 +08:00
172d7fc3af expression: rewrite builtin function: LOCATE (#4088) 2017-08-10 19:21:38 +08:00
2ca8e239fd expression: rewrite builtin string function: LPAD, RPAD (#4036) 2017-08-10 14:20:32 +08:00
b521240c8e expression: rewrite builtin string function: INSTR (#4052) 2017-08-10 12:47:10 +08:00
2ed02b287d expression: rewrite builtin function: CHAR_LENGTH (#4105)
* expression: rewrite builtin funtion 'CHAR_LENGTH'
2017-08-09 19:29:32 +08:00
06c4f6e275 expression: function SUBSTR/LEFT/RIGHT should manipulate bytes when parameter is a binary (#4033) 2017-08-09 13:21:19 +08:00
bda5c44c97 expression: rewrite builtin string function: CHAR (#4041) 2017-08-08 21:05:44 +08:00
5a469c08e7 expression: rewrite builtin string function: BIN (#4039) 2017-08-07 21:12:43 +08:00
128d752939 expression: rewrite builtin string function: FROM_BASE64 (#4040) 2017-08-07 15:24:35 +08:00
9f4475844e *: support binary flag of type char and fix type inferer of some string built-in funcs (#4035) 2017-08-07 12:28:32 +08:00
b4715f5895 expression: function SUBSTR/LEFT/RIGHT should manipulate code points instead of bytes(#4019) (#4027) 2017-08-04 14:45:22 +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
ff7de9972f expression, executor, plan: rewrite builtin function unhex. (#3830) 2017-07-20 19:56:12 +08:00
e7f97522b8 expression, executor, plan: rewrite builtin function hex (#3794) 2017-07-19 17:38:12 +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
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
fefbc3ce69 expression: UPPER and LOWER should return a binary string when input is a binary string (#3744) 2017-07-13 18:44:41 +08:00
300dd5c7c1 expression, executor, plan: rewrite builtin function substring/substr. (#3711) 2017-07-12 18:22:21 +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
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
9ff2fbae67 refactor builtin string function ord (#3671) 2017-07-09 11:46:10 +08:00
35d2ca006a expression, parser: simplify the type inferer of builtin funcs (#3617) 2017-07-06 16:18:40 +08:00
fc161459b3 expression, executor: rewrite builtin strcmp function (#3559) 2017-07-05 10:36:24 +08:00
0dd049d9b2 [expression] rewrite built-in string function: REPEAT (#3546)
* expression, executor: rewrite builtin func repeat

* expression, executor: rewrite builtin func repeat, remove unnecessary non-binary flag settings

* only cover retType in ScalaFunction when builtin function's retType is not mysql.TypeUnspecified

* add test cases in executor_test.go for built-in udf REPEAT
2017-06-30 14:09:29 +08:00
284ac94a69 expression, executor: fix unhex(binary) error (#3569) 2017-06-29 18:07:37 +08:00