Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result of select collation(concat(1,1)); is wrong #19189

Closed
xiongjiwei opened this issue Aug 13, 2020 · 1 comment · Fixed by #19186
Closed

result of select collation(concat(1,1)); is wrong #19189

xiongjiwei opened this issue Aug 13, 2020 · 1 comment · Fixed by #19186
Labels
component/expression severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@xiongjiwei
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

set names utf8mb4 collate utf8mb4_general_ci;
select collation(concat(1,1));
select collation(concat(1 collate `binary`));

2. What did you expect to see? (Required)

utf8mb4_general_ci
binary

3. What did you see instead (Required)

utf8mb4_bin
utf8mb4_bin

this bug was introduced after #19169. but it is not the root cause, since before this PR

select collation(concat(1 collate `binary`));

is wrong too

@liuzix
Copy link
Contributor

liuzix commented Aug 14, 2020

/label sig/execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/expression severity/major sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants