Bug #112243 | Unexpected Result by subquery_to_derived | ||
---|---|---|---|
Submitted: | 4 Sep 2023 4:54 | Modified: | 4 Sep 2023 8:30 |
Reporter: | JINSHENG BA | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.34 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[4 Sep 2023 4:54]
JINSHENG BA
[4 Sep 2023 8:30]
MySQL Verification Team
Hello Jinsheng Ba, Thank you for the report and test case. regards, Umesh
[21 Sep 2023 7:13]
huahua xu
Hi, all: When setting the subquery_to_derived flag to on, the optimizer does not detect tables that are const (0 or 1 row), and fill the key value with wrong data which choose the best QUICK access method for table.