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

enum doesn't support collation #20268

Closed
ChenPeng2013 opened this issue Sep 28, 2020 · 3 comments · Fixed by #20274
Closed

enum doesn't support collation #20268

ChenPeng2013 opened this issue Sep 28, 2020 · 3 comments · Fixed by #20274
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@ChenPeng2013
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

new_collations_enabled_on_first_bootstrap = true

use test;
drop table if exists t;
CREATE TABLE `t` (   `a` enum('a','b') DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
insert into t values('a');
select * from t where a = 'A';

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

mysql> select * from t where a = 'A';
+------+
| a    |
+------+
| a    |
+------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

mysql> select * from t where a = 'A';
Empty set (0.00 sec)

4. What is your TiDB version? (Required)

master 0cdd24d and release-4.0 ddba4fe

@ChenPeng2013 ChenPeng2013 added the type/bug The issue is confirmed as a bug. label Sep 28, 2020
@XuHuaiyu
Copy link
Contributor

PTAL @wjhuang2016

@sre-bot
Copy link
Contributor

sre-bot commented Oct 10, 2020

Integrity check:
RCA symptom trigger_condition affect_version fix_version fields are empty

Please comment /info to get template

@ti-srebot
Copy link
Contributor

ti-srebot commented Oct 10, 2020

Please edit this comment to complete the following information

Not a bug

  1. Remove the 'type/bug' label
  2. Add notes to indicate why it is not a bug

Duplicate bug

  1. Add the 'type/duplicate' label
  2. Add the link to the original bug

Bug

Note: Make Sure that 'component', and 'severity' labels are added
Example for how to fill out the template: #20100

1. Root Cause Analysis (RCA)

enum and set get the wrong coercibility.

2. Symptom

Wrong result

3. All Trigger Conditions

enum or set, new collation

4. Workaround (optional)

5. Affected versions

[v4.0.0:v4.0.7]

6. Fixed versions

unplanned

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

Successfully merging a pull request may close this issue.

6 participants