#13 Wrong number of records returned when LIMIT is used

closed-fixed
Daniel
5
2009-03-03
2009-03-03
Anonymous
No

Wrong number of records returned when LIMIT is used

When using an SQL statement like:
SELECT * FROM table LIMIT 3,0
Gladius returns three times the first record of the result set.

There is a bug in gladius_select.php, around line 179.

$result->_iterate('_fetch_row')
should be
while ($result->_iterate('_fetch_row')) { }

Discussion

  • Daniel
    Daniel
    2009-03-03

    • status: open --> closed-fixed
     
  • Daniel
    Daniel
    2009-03-03

    the solution you proposed is not correct, however this bug has already been fixed on SVN (please confirm) and will be shipped in next release

    Thanks for your submission!