You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
use test;
drop table if exists t, t1;
create table t(a enum('a', 'b'), b tinyint);
create table t1(c varchar(20));
insert into t values('b', 0);
insert into t1 values('b');
select * from t, t1 where t.a= t1.c;
select * from t, t1 where t.b= t1.c;
select * from t, t1 where t.a = t1.c and t.b= t1.c;
2. What did you expect to see? (Required)
mysql> select * from t, t1 where t.a= t1.c;
+------+------+------+
| a | b | c |
+------+------+------+
| b | 0 | b |
+------+------+------+
1 row in set (0.00 sec)
mysql> select * from t, t1 where t.b= t1.c;
+------+------+------+
| a | b | c |
+------+------+------+
| b | 0 | b |
+------+------+------+
1 row in set, 1 warning (0.00 sec)
mysql> select * from t, t1 where t.a = t1.c and t.b= t1.c;
+------+------+------+
| a | b | c |
+------+------+------+
| b | 0 | b |
+------+------+------+
1 row in set, 1 warning (0.00 sec)
3. What did you see instead (Required)
mysql> select * from t, t1 where t.a= t1.c;
+------+------+------+
| a | b | c |
+------+------+------+
| b | 0 | b |
+------+------+------+
1 row in set (0.00 sec)
mysql> select * from t, t1 where t.b= t1.c;
+------+------+------+
| a | b | c |
+------+------+------+
| b | 0 | b |
+------+------+------+
1 row in set, 1 warning (0.01 sec)
mysql> select * from t, t1 where t.a = t1.c and t.b= t1.c;
Empty set, 1 warning (0.00 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master 462927b and release-4.0 476c992
The text was updated successfully, but these errors were encountered: