Bug #15040 | ORDER BY .. DESC missing rows with BDB | ||
---|---|---|---|
Submitted: | 18 Nov 2005 1:14 | Modified: | 21 Aug 2006 22:19 |
Reporter: | Michael Kirkham | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Server: BDB | Severity: | S2 (Serious) |
Version: | 4.1.13/5.0 BK | OS: | FreeBSD (FreeBSD/Linux) |
Assigned to: | CPU Architecture: | Any |
[18 Nov 2005 1:14]
Michael Kirkham
[18 Nov 2005 11:34]
MySQL Verification Team
Thank you for the bug report. mysql> select version(); +--------------+ | version() | +--------------+ | 5.0.17-debug | +--------------+ 1 row in set (0.00 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' ORDER BY Serial DESC LIMIT 1; Empty set (0.00 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' LIMIT 1; +----------+ | Serial | +----------+ | 00000001 | +----------+ 1 row in set (0.00 sec) mysql> select version(); +------------------+ | version() | +------------------+ | 4.1.16-debug-log | +------------------+ 1 row in set (0.00 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' ORDER BY Serial DESC LIMIT 1; Empty set (0.17 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' LIMIT 1; +----------+ | Serial | +----------+ | 00000001 | +----------+ 1 row in set (0.00 sec) mysql> select version(); +------------------+ | version() | +------------------+ | 4.0.26-debug-log | +------------------+ 1 row in set (0.00 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' ORDER BY Serial DESC LIMIT 1; +----------+ | Serial | +----------+ | 00000001 | +----------+ 1 row in set (0.00 sec) mysql> SELECT Serial FROM `licenses` WHERE ProductID='100301' AND PlatformID='05' -> AND OEMID='0000' LIMIT 1; +----------+ | Serial | +----------+ | 00000001 | +----------+ 1 row in set (0.00 sec)