7229416bae
functions: fix some string function has wrong collation and flag ( #23835 )
2021-04-07 12:42:32 +08:00
b8c91d14ef
expression, executor: fix runtime panic in WEIGHT_STRING function when the length of binary is too large ( #22251 )
2021-01-11 11:47:27 +08:00
46fa162889
expression: do not report error when got unknown locale ( #21818 )
...
Signed-off-by: lzmhhh123 <lzmhhh123@gmail.com >
2020-12-17 13:44:05 +08:00
5c19b8236f
expression: handle tp.flen overflow in to_base64 function ( #20947 )
2020-12-15 16:44:54 +08:00
28c9e9290b
*: gocritic fixes for commentFormatting ( #21578 )
2020-12-09 12:03:17 +08:00
027105ff1b
expression: fix the wrong behavior of char function ( #17598 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-06-19 12:11:54 +08:00
23af4b9be9
expression: fix a bug that hex function return the wrong result if the type of column is binary string ( #17590 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2020-06-03 11:32:02 +08:00
d823deb583
expression: fix case-sensitive problem for function INSTR and LOCATE ( #16792 )
2020-05-09 18:00:05 +08:00
9d391949cd
expression: refactor logic about checking illegal mix collations ( #16866 )
2020-04-29 16:40:56 +08:00
62e4d588a8
Makefile: add unconvert to inspect unnecessary type convert ( #16549 )
2020-04-22 23:01:59 +08:00
5e8706a1f6
util/collate: remove CollatorOption ( #15472 )
...
`CollatorOption` was used to specify the `PadLen` which aims to support
"PADDING" attribute of the collations. But now it is not needed anymore,
since TiDB actually implements "PADDING" by removing trailing spaces.
2020-03-19 15:16:29 +08:00
20703ee8a6
expression: return binary charset and collation if there is no string-type argument in DeriveCollationFromExprs ( #15250 )
2020-03-10 17:26:46 +08:00
e58cef5718
expression,types: wrap ParseUint error with stack ( #15188 )
2020-03-09 14:28:45 +08:00
1771fff928
expression: make field and findInSet support collation ( #15100 )
2020-03-04 18:12:53 +08:00
1a92dc07df
collation: fix wrong collation information used in expression calculation ( #15006 )
2020-03-02 17:30:04 +08:00
568cc224f7
expression: add builtin function WEIGHT_STRING() ( #14792 )
...
Add builtin-function WEIGHT_STRING(). MySQL manual described most of its behavior except:
If the input str is of numeric types, WEIGHT_STRING() in MySQL returns NULL, so does this implementation.
If the input str is of other types rather than string or numeric, the result of WEIGHT_STRING() in MySQL is not cleared. I simply evaluated the input as string.
2020-02-28 01:52:19 +08:00
f2fa5c5fd5
expression: consider collations when comparing strings ( #14913 )
2020-02-25 15:06:37 +08:00
cbc2c03c36
expression: derive collation and charset information and support the Collation() builtin-func ( #14905 )
2020-02-24 19:35:49 +08:00
aedea3ec5e
expression: separate signature Upper to Upper and UpperUTF8 ( #14899 )
2020-02-23 12:44:57 +08:00
f07ad16883
expression: fix builtin function ord ( #13994 )
2019-12-15 18:10:43 +08:00
78269d1bdd
expression: rename some string expression functions ( #13971 )
2019-12-09 23:27:25 +08:00
2b93239c66
expression: implement vectorized evaluation for builtinConcatWSSig ( #13331 )
2019-12-07 00:01:35 -06:00
6b9703bc5f
expression: panic in test mode if builtin function's PbCode unspecified ( #13334 )
...
Signed-off-by: Lonng <heng@lonng.org >
2019-11-12 15:31:12 +08:00
861ed79095
expression: implement vectorized evaluation for builtinOrdSig ( #13304 )
2019-11-09 15:21:42 +08:00
87357daba5
expression: implement vectorized evaluation for builtinEltSig ( #13266 )
2019-11-08 16:45:23 +08:00
3a1fb291ed
bindinfo: correctly handle quotes for bindings sql ( #13115 )
2019-11-04 15:57:39 +08:00
5f9fe27a14
expression: the quote function should treat null expr as NULL… ( #11592 )
2019-08-05 19:05:37 +08:00
593fb7def5
expression: add max_allowed_packet check in concat/concat_ws ( #11137 )
2019-07-16 15:56:51 +08:00
a090e6be29
Function INSERT should be NULL if any argument is NULL ( #11237 )
2019-07-15 11:33:06 +08:00
c8d1ff7ca6
*: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' ( #10866 )
2019-06-21 19:13:31 +08:00
37c128b64f
expression: set correct return field type of builtin CONVERT() ( #9305 )
2019-03-31 15:11:20 +08:00
ba26012231
expression: using pingcap/log and unify the log format ( #9507 )
2019-03-14 19:05:27 +08:00
6398788f6b
expression: function format incompatible ( #9182 )
2019-01-31 16:39:21 +08:00
477e252b35
expression: handle empty input and improve compatibility for format ( #8797 )
2019-01-02 14:13:08 +08:00
d9e02b76dd
expression: remove redundant "errors.Trace()" in "expression" package ( #8609 )
2018-12-07 12:20:31 +08:00
32b1dbd8d5
*: rename "github.com/pkg/errors" to "github.com/pingcap/errors" ( #8136 )
...
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8
*: move parser to a separate repository ( #8036 )
2018-10-25 11:12:10 +08:00
aec4814ffe
expression: fix painc on substring_index ( #7806 )
2018-10-08 22:07:06 +08:00
cb03f2bec1
move from juju/errors to pkg/errors ( #7151 )
2018-09-12 15:42:20 +08:00
c625c27239
expression: check max_allowed_packet constraint for function insert ( #7502 )
2018-08-29 13:52:15 +08:00
5754f624c9
expression: fix builtin 'CharLength' for binary string input ( #7410 )
2018-08-20 12:08:23 +08:00
2fbd5e7a70
expression: handle max_allowed_packet warnings for repeat function. ( #7181 )
2018-08-17 23:39:47 +08:00
4624785b37
expression: handle max_allowed_packet warnings for from_base64 function. ( #7409 )
2018-08-17 23:12:37 +08:00
016006f5c5
expression: handle max_allowed_packet warnings for to_base64 function. ( #7266 )
2018-08-15 10:49:20 +08:00
6e33d2e3b7
expression: fix behavior for builtin 'LTrim', 'RTrim' and 'Trim' ( #7291 )
2018-08-07 15:07:02 +08:00
6287b24f43
expression: handle max_allowed_packet warnings for space function. ( #7210 )
2018-08-02 12:57:06 +08:00
c38f567645
expression: handle max_allowed_packet warnings for pad functions ( #7171 )
2018-07-31 15:12:31 +08:00
06021c7cfe
remove types.Row interface ( #7170 )
2018-07-27 13:45:03 +08:00
f21483e6ed
expression: add Clone() for builtinFunc
2018-04-11 10:00:19 -05:00
5445e17fac
*: fix in-compatible behavior when modify value from Navicat GUI ( #6105 )
2018-03-22 15:38:27 +08:00