'LIMIT 0,i' does not work with 'ORDER BY'
Posted: Tue 16 May 2006 20:10
The following query raises a stupid 'list index out of bounds' error:
'SELECT * FROM Table ORDER BY COL_NAME LIMIT 0,1'
when the lower limit is 0 and order by is included (can be solved by just including the upper limit, but it is still a bug, right?).
Anyway it took me 2 hours to track it down, so it would be great if someone fixed it to save time for people who have funnier things to do with their time.
'SELECT * FROM Table ORDER BY COL_NAME LIMIT 0,1'
when the lower limit is 0 and order by is included (can be solved by just including the upper limit, but it is still a bug, right?).
Anyway it took me 2 hours to track it down, so it would be great if someone fixed it to save time for people who have funnier things to do with their time.