Bug #104700 | multi-valued index is buggy in view, prepared statement, OR and AND clauses | ||
---|---|---|---|
Submitted: | 23 Aug 2021 15:06 | Modified: | 3 Sep 2021 22:39 |
Reporter: | Yubao Liu (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: JSON | Severity: | S1 (Critical) |
Version: | 8.0.26 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[23 Aug 2021 15:06]
Yubao Liu
[23 Aug 2021 15:20]
Yubao Liu
This fixes https://bugs.mysql.com/bug.php?id=104325 too.
[24 Aug 2021 6:50]
MySQL Verification Team
Hello Yubao Liu, Thank you for the report and contribution. regards, Umesh
[24 Aug 2021 6:52]
MySQL Verification Team
- 5.7 - NA since WL#8763 is implemented in 8.0+
[3 Sep 2021 22:39]
Jon Stephens
Documented fix as follows in the MySQL 8.0.27 changelog: Multi-valued indexes were not used in the following cases: In views In prepared statements In a WHERE containing MEMBER OF() combined using OR with another predicate In addition, MySQL wrongly reported 'impossible condition' for a WHERE clause in the form f() AND f(), where f() was any of MEMBER OF(), JSON_CONTAINS(), or JSON_OVERLAPS(). Our thanks to Yubao Liu for the contribution. Closed.