Bug #107787 | Incorrect work of query with union in inner select | ||
---|---|---|---|
Submitted: | 6 Jul 2022 17:58 | Modified: | 23 Sep 2022 18:48 |
Reporter: | Evgeny Rogozhnikov | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 8.0.29 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | regression |
[6 Jul 2022 17:58]
Evgeny Rogozhnikov
[7 Jul 2022 5:39]
MySQL Verification Team
Hello Evgeny, Thank you for the report and test case. regards, Umesh
[23 Sep 2022 18:48]
Jon Stephens
Documented fix as follows in the MySQL 8.0.32 changelog: A condition pushdown into a UNION of queries having LIKE clauses did not preserve the correct character set, leading to an (erroneous) empty result. We solve this problem in two parts: 1. By refactoring resolution of LIKE expressions, in which character set determination and propagation were previously performed in two separate blocks of the code that were not always consistent with one another. 2. By adding, in the internal parse_expression() function, a character set prefix to any literal character string that is cloned. Closed.