Bug #110017 | SELECT returns incorrect value when ORDER BY a CASE WHEN value in left-joined su | ||
---|---|---|---|
Submitted: | 10 Feb 2023 6:27 | Modified: | 10 Feb 2023 9:03 |
Reporter: | Taro Suzuki | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.7.41 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | Any |
[10 Feb 2023 6:27]
Taro Suzuki
[10 Feb 2023 6:31]
Taro Suzuki
expected result: +----+------+-----------+-------+ | id | id | header_id | cased | +----+------+-----------+-------+ | 1 | NULL | NULL | NULL | <- cased is null +----+------+-----------+-------+
[10 Feb 2023 6:34]
MySQL Verification Team
Hello Taro Suzuki, Thank you for the report and test case. regards, Umesh
[10 Feb 2023 6:36]
Taro Suzuki
btw how can I edit my first post ? > [10 Feb 6:27] Taro Suzuki
[10 Feb 2023 7:50]
MySQL Verification Team
Hello Taro San, >>btw how can I edit my first post ? > [10 Feb 6:27] Taro Suzuki IMHO, you cannot edit, same for me as well. Is there anything you would like to edit etc, I can forward it to concern team or I can mark the description private if you wish to. Please let me know. regards, Umesh
[10 Feb 2023 9:03]
Taro Suzuki
>you cannot edit ok. thanks
[16 Feb 2023 4:47]
huahua xu
The patch will work well
Attachment: case_when_not_null_value_in_left_join_bugfix.patch (application/octet-stream, text), 988 bytes.