Bug #111706 Incorrect result
| Submitted: | 10 Jul 2023 8:24 | Modified: | 10 Jul 2023 10:33 |
|---|---|---|---|
| Reporter: | Doris Li | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 8.0.28, 8.0.33 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[10 Jul 2023 8:24]
Doris Li
[10 Jul 2023 10:33]
MySQL Verification Team
Hello Doris Li, Thank you for the report and test case. regards, Umesh
[17 Mar 2025 9:33]
Przemyslaw Malkowski
This problem still applies in 8.0.41, and is reproducible with an even simpler test case: mysql > SET optimizer_switch='subquery_to_derived=off'; Query OK, 0 rows affected (0.00 sec) mysql > SELECT * FROM t1 where (t1.c1 IN (SELECT min(tin.c0) FROM t0 as tin group by c0)); +------+------+ | c0 | c1 | +------+------+ | NULL | 0 | +------+------+ 1 row in set (0.00 sec) mysql > SET optimizer_switch='subquery_to_derived=on'; Query OK, 0 rows affected (0.00 sec) mysql > SELECT * FROM t1 where (t1.c1 IN (SELECT min(tin.c0) FROM t0 as tin group by c0)); +------+------+ | c0 | c1 | +------+------+ | NULL | 0 | | NULL | 0 | | NULL | 0 | +------+------+ 3 rows in set (0.00 sec)
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.038 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.