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
create table t(id int primary key, v int);
insert into t values(1, 1), (2, 2), (3, 3);
set @@tidb_max_chunk_size=1;
select (select t.id from t where t.id = t.v and t.v != s.id) from t s;
What did you expect to see?
ERROR 1105 (HY000): subquery returns more than 1 row
What did you see instead?
+-------------------------------------------------------+
| (select t.id from t where t.id = t.v and t.v != s.id) |
+-------------------------------------------------------+
| 2 |
| 1 |
| 1 |
+-------------------------------------------------------+
3 rows in set (0.01 sec)
What version of TiDB are you using (tidb-server -V or run select tidb_version(); on TiDB)?
This issue will be fixed with #7141
tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: