This project is archived and is in readonly mode.
:limit + :offset incompatibility between SQLite and Postgres
-
Rohit Arondekar
- State changed from new to open
- Assigned user set to Santiago Pastorino
- Tag set to activerecord
- Importance changed from to Low
Confirmed inconsistency in Rails 3.
I'm guessing that for SQLite setting the :limit to -1 by default should make it work. And for Postgres overriding any negative limit settings to nothing should work.
I could try to work on a patch in that direction, but is this desirable?
P.S Santiago: I assigned to you since I don't know if anybody else is active in AR.
-
Santiago Pastorino
- Milestone cleared.
- Assigned user changed from Santiago Pastorino to Aaron Patterson
-
Repository
- State changed from open to resolved
(from [410114e85ac0048de3fd932a5aaac2a11b45be86]) adding a test to ensure offsets with no limits will work [#5316 state:resolved] http://github.com/rails/rails/commit/410114e85ac0048de3fd932a5aaac2...