Bug #596 select max() sometimes returns NULL
| Submitted: | 5 Jun 2003 8:18 | Modified: | 12 Aug 2003 10:33 |
|---|---|---|---|
| Reporter: | Riccardo Ghiglianovich | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: ISAM storage engine | Severity: | S1 (Critical) |
| Version: | 3.23.56 | OS: | Linux (Linux R.H. 8.0 s.e.) |
| Assigned to: | Victor Vagin | CPU Architecture: | Any |
[5 Jun 2003 8:18]
Riccardo Ghiglianovich
[6 Jun 2003 17:19]
Alexander Keremidarski
The 'minimalized' structure which exposes bug is: CREATE TABLE `rik` ( `idpian` int(11) NOT NULL default '0', `idcomm` int(11) NOT NULL default '0', KEY `idcomm` (`idcomm`,`idpian`) ) TYPE=ISAM; It happens when there is WHERE idcomm =,!=,<,>,IS NULL MAX() returns NULL when Index Prefix column is compared to anything except for idcomm IS NOT NULL. This is ISAM specific bug. It does not happen with any other table type. I tested it with MyISAM, InnoDB, HEAP and BDB types.
[12 Aug 2003 10:33]
Sergei Golubchik
fixed in 3.23.58
[12 Aug 2003 10:33]
Sergei Golubchik
it also means it's fixed in 4.0.15
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.051 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.