Commit Graph

17 Commits

Author SHA1 Message Date
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