Bug #42058 Bit index fails to return all matching rows
| Submitted: | 12 Jan 2009 19:00 | Modified: | 12 Jan 2009 21:49 |
|---|---|---|---|
| Reporter: | Philip Stoev | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 5.0, 5.1, 6.0 bzr | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[12 Jan 2009 19:00]
Philip Stoev
[12 Jan 2009 21:49]
Sveta Smirnova
Thank you for the report. Verified as described with exception: Falcon returns correct results and InnoDB returns no results with version 5.1
[4 Nov 8:19]
Øystein Grøvlen
Posted by developer: Closing as a duplicate of Bug#11751809 (public Bug #42803), “Field_bit does not have unsigned_flag field, can lead to bad memory access.” The fix explicitly treats BIT fields as unsigned when constructing ranges against negative constants, addressing the reported difference between f1 >= 0 and f1 > -1. Verification of the original testcase confirms the correction in 5.0.88 compared with 5.0.87 on both InnoDB and MyISAM, and in 5.1.41 compared with 5.1.40 on InnoDB. Both queries return the expected ten rows in current MySQL 26.10.0 with both the traditional and hypergraph optimizers, on both engines.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.041 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.