Commit Graph

32 Commits

Author SHA1 Message Date
01fdb6023c expression: fix Coercibility and Collation with json type (#31576)
close pingcap/tidb#31320, close pingcap/tidb#31541
2022-02-09 15:41:36 +08:00
fa3328fc9c expression: fix greatest and least function with collation get wrong result (#31806)
close pingcap/tidb#31789
2022-01-20 11:25:45 +08:00
d9d89d69d1 expression: fix nil pointer dereference for case expression (#30479)
close pingcap/tidb#30245
2022-01-05 10:18:35 +08:00
61d13b561c encoding: skip utf8 charset validation in some cases (#31061)
close pingcap/tidb#31014
2021-12-28 17:51:49 +08:00
d543b60464 parser: add IsValid() to Encoding to speed up string validation for UTF-8 (#30937)
close pingcap/tidb#30936
2021-12-22 18:19:48 +08:00
ab35db14a6 *: refactor encoding and uniform usages (#30288) 2021-12-20 15:27:46 +08:00
3d267514d5 expression: cast charset according to the function's resulting charset (#29905) 2021-11-24 17:07:50 +08:00
c835349972 table, parser: check for invalid GBK characters before insertion (#28814) 2021-11-22 13:29:49 +08:00
bdfd3f6974 *: refine CharsetAndCollation (#29561) 2021-11-12 17:41:05 +08:00
2a6d43a760 expression: cleanup code (#29459) 2021-11-07 10:49:12 +08:00
4b6291f45c collation: change some builtin function to has ASCII repertoire (#29290) 2021-11-01 17:10:52 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
32f96fef77 expression: make infer collation support the expressions with different charset (#27863) 2021-10-11 14:51:25 +08:00
b339ca29c8 expression: aggregate the collation only if the function is needed. (#27789) 2021-09-22 13:40:45 +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
2386702697 executor: fix data too long in union statement with select null and select varchar (#22183) 2021-01-06 13:34:35 +08:00
ca909c1bf9 planner: fix the coercibility of the cast function (#21705)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-12-14 17:19:28 +08:00
2f8092ea84 expression: fix a bug that the coercibilities of enum and set are wrong (#20274)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-10-09 14:01:39 +08:00
15432287cc expression: incorporate unicode_ci into constant propagation (#19555)
* handle constant propagation

* fmt

* uncomment

Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
Co-authored-by: Zhang Jian <zjsariel@gmail.com>
2020-09-04 17:03:29 +08:00
d355b82f1c expression: unicode_ci support when infer collation and charset information (#19142)
* add mix unicode_ci collation support

* comments change

* bug fix

* add test

* refactor illegal mix collation message

* fmt

* fix check

* fmt

* refactor infer collation

* refactor infer collation

* add charset info

* address comments

* return bin if something wrong

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-26 11:08:21 +08:00
5153a4155a expression: fix incorrect collation when cast non-string type arg to string type (#19186) 2020-08-19 15:36:31 +08:00
8bbeceb5ee expression: support handle two collation cannot substituted to each other (#19036) 2020-08-18 15:07:39 +08:00
b9e90ef614 expression: fix wrong collation and coercibility (#19169) 2020-08-13 16:28:49 +08:00
ae779e1502 expression: simplify get priority by collation (#18783) 2020-08-11 23:51:25 +08:00
6a49bb4a84 *: fix a bug which causes function return truncated result (#17101) 2020-05-12 12:54:35 +08:00
ac8785a978 expression: fix wrong constant propagation with the collation (#16227) 2020-04-16 14:10:10 +08:00
4d05eaf9e5 expression: fix wrong inference of collation (#15914) 2020-04-01 15:54:14 +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
1a92dc07df collation: fix wrong collation information used in expression calculation (#15006) 2020-03-02 17:30:04 +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
fe6ca65414 expression: implement the Coercibility() function (#14739) 2020-02-13 19:15:48 +08:00