Bug #117634 | Incorrect query results | ||
---|---|---|---|
Submitted: | 6 Mar 14:00 | Modified: | 7 Mar 12:57 |
Reporter: | John Jove | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 8.4.4, 8.0.41 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[6 Mar 14:00]
John Jove
[7 Mar 6:16]
John Jove
I try the BLOB data type with NOT NULL, in which a correct result is returned. CREATE TABLE t1 (c1 TINYBLOB NOT NULL); INSERT INTO t1 VALUES (1); SELECT c1 FROM t1 WHERE 'a' BETWEEN 0 AND (c1); -- {0x31} It seems that the NOT NULL constraint causes a different calculation from the UNIQUE constraint against the BLOB data type.
[7 Mar 12:57]
MySQL Verification Team
Hello John, Thank you for the report and test case. Verified as described. regards, Umesh