Closed pthomsen closed 11 years ago
Hi,
Which database are you using? I'm not seeing this behaviour here, using SQLite. The limit isn't used when iterating through the results - Idiorm just returns all the results that have come back from the database, which is making me think it might be a DB issue perhaps..
I'm using mysql.
I am unable to replicate this issue using Paris with MySQL. If it persists please open a ticket on the Paris issue tracker supplying your full model class and an SQL schema dump for the relevant table.
Say I use the following:
I get an array that is 100 elements long, no matter how many rows are really available.
Should there not just be the number of rows returned from the query?
Thanks, Per