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

wrong join results with enum value. #17104

Closed
SunRunAway opened this issue May 12, 2020 · 2 comments
Closed

wrong join results with enum value. #17104

SunRunAway opened this issue May 12, 2020 · 2 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. What did you do?

create table tenum( col ENUM ('value1','value2','value3'), col2 ENUM('v1', 'v2', 'v3') );
insert into tenum values(1, 1);

2. What did you expect to see?

mysql> select * from tenum t1 inner join tenum t2 on t1.col = t2.col2;
Empty set (0.00 sec)

3. What did you see instead?

mysql> select * from tenum t1 inner join tenum t2 on t1.col = t2.col2;
+--------+------+--------+------+
| col    | col2 | col    | col2 |
+--------+------+--------+------+
| value1 | v1   | value1 | v1   |
+--------+------+--------+------+
1 row in set (0.00 sec)

4. What version of TiDB are you using? (tidb-server -V or run select tidb_version(); on TiDB)

4.0-rc1

@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. sig/execution SIG execution labels May 12, 2020
@SunRunAway SunRunAway added the help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. label May 12, 2020
@SunRunAway
Copy link
Contributor Author

Maybe type SET has a similar issue.

@SunRunAway
Copy link
Contributor Author

Duplicate of #18850

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/critical sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants