Commit Graph

145 Commits

Author SHA1 Message Date
3738dec53e *: enable the new collation by default (#32016)
ref pingcap/tidb#32015
2022-02-08 12:53:35 +08:00
cfbe70846a config: remove new charset config (#31291)
close pingcap/tidb#31236
2022-01-06 13:26:37 +08:00
ab35db14a6 *: refactor encoding and uniform usages (#30288) 2021-12-20 15:27:46 +08:00
1e5e86920d test: merge serial tests in bindinfo, expression, parser and statistics (#30749) 2021-12-16 18:40:37 +08:00
b4df7ca4dc test: make all the tests run in serial (#30692) 2021-12-14 18:06:36 +08:00
2a1ea89fd4 expression: fix data race in the collationInfo (#30490) 2021-12-08 14:43:57 +08:00
bea1041845 expression: add builtin func bit_length() for gbk (#29531) 2021-11-22 10:37:49 +08:00
9ec688ebe8 expression, parser: support GBK for builtin function ord (#29527) 2021-11-18 14:33:47 +08:00
7c1097feed cmd, expression, parser: support GBK for builtin function char() (#29543) 2021-11-12 15:31:06 +08:00
318030adef expression: migrate tests to testify (#29276) 2021-11-02 23:16:52 +08:00
088e68bee8 expression: support GBK charset for builtin function octet_length() (#29039) 2021-11-02 11:38:51 +08:00
b7ed87de7c expression: migrate builtin tests (#29125) 2021-10-27 21:18:49 +08:00
8fb4ce573c expression: support GBK charset for builtin function ascii() (#29071) 2021-10-27 16:32:49 +08:00
836b10200b expression: support GBK charset for builtin function to_base64() (#29054) 2021-10-25 23:36:48 +08:00
26ab066b59 expression: add builtin func length() for gbk (#29011) 2021-10-21 18:20:46 +08:00
acb3a89634 expression, parser: fix the result of trim3Args (#28936) 2021-10-19 21:00:43 +08:00
42001503cb expression, parser: support GBK charset for builtin function lower() (#28869) 2021-10-15 18:02:41 +08:00
ac9dcbb53f expression: support GBK charset for builtin function upper() (#28817) 2021-10-15 15:29:27 +08:00
e96100b5b5 expression: support GBK charset for builtin function hex() (#28305) 2021-10-13 15:23:28 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
e8f4e47798 expression: no-op implementation for load_file to support Navicat (#28216) 2021-10-11 16:33:26 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
6ab9d7dbcd expression: support Oracle translate function (#26408) 2021-07-29 16:18:17 +08:00
2890a8f62c executor: fix get var expr when session var is hex literal (#23241) 2021-03-17 15:02:55 +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
28c9e9290b *: gocritic fixes for commentFormatting (#21578) 2020-12-09 12:03:17 +08:00
ba60cf5a69 charset: implement utf8_unicode_ci and utf8mb4_unicode_ci collation (#18776) 2020-08-27 23:20:48 +08:00
bca31eaf62 *: refine the behavior of StrToInt and StrToFloat and support convert JSON to date, time and timestamp (#17902)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-06-22 11:59:24 +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
d823deb583 expression: fix case-sensitive problem for function INSTR and LOCATE (#16792) 2020-05-09 18:00:05 +08:00
25580ea5f4 *: Use a function to get the ONE, ZERO and NULL and fix the clone. (#16512) 2020-04-17 19:11:52 +08:00
c561d5aa99 *: remove useless conversions and omit some types (#16262) 2020-04-10 00:23:06 +08:00
30e2bdcc52 *: remove some debug print in test files (#14977) 2020-02-28 12:52:59 +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
f4d1b5ec9f expression: fix lower()/upper() doesn't work if string contains utf8 char. (#14667) 2020-02-07 16:02:33 +08:00
d006443194 type: encapsulate Time API (#14288) 2019-12-31 12:41:09 +08:00
78269d1bdd expression: rename some string expression functions (#13971) 2019-12-09 23:27:25 +08:00
a1dc0477a5 types: add error code for package types (#13300) 2019-11-26 19:45:14 +08:00
5d5497bfeb expression: speed up unit tests under the expression package (#12887) 2019-10-23 03:56:31 -05:00
62f1a54680 expression: remove row-vec convertor and introduce Vectorized() to check if an expression supports vectorized evaluation explicitly (#11884) 2019-08-27 20:16:35 +08:00
5e54680ca3 expression: make baseBuiltinFunc support converting from row-based evaluation to vectorized evaluation 2019-08-14 15:02:44 +08:00
5f9fe27a14 expression: the quote function should treat null expr as NULL… (#11592) 2019-08-05 19:05:37 +08:00
ff0132ff34 expression, parser: add function octet_length support (#11451) 2019-07-26 14:21:15 +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
37c128b64f expression: set correct return field type of builtin CONVERT() (#9305) 2019-03-31 15:11:20 +08:00
6398788f6b expression: function format incompatible (#9182) 2019-01-31 16:39:21 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
477e252b35 expression: handle empty input and improve compatibility for format (#8797) 2019-01-02 14:13:08 +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