Bug #117811 Incorrect query results for BLOB type
| Submitted: | 27 Mar 2025 15:19 | Modified: | 28 Mar 2025 4:34 |
|---|---|---|---|
| Reporter: | John Jove | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
| Version: | 8.4.4, 8.0.41, 9.2.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[28 Mar 2025 4:34]
MySQL Verification Team
Hello John, Thank you for the report and test case. Verified as described. regards, Umesh
[3 Apr 2025 14:22]
huahua xu
The collation between `Item_func_between` operator and B-tree index is inconsistent, what caused the phantom.
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.
Description: I run the following statements, in which an incorrect result is returned. How to repeat: CREATE TABLE t1 (c1 BLOB, UNIQUE (c1(4))); INSERT INTO t1 (c1) VALUES (9); INSERT INTO t1 (c1) VALUES (110); SELECT ca4 AS ca1 FROM (SELECT c1 as ca4 FROM t1) AS ta1 INNER JOIN (SELECT c1 AS ca7 FROM t1) AS ta2 ON (ca4 BETWEEN 1 AND ca7); -- actual: {9, 110}, expected: {9, 9, 110}