Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset patch #270

Merged
merged 2 commits into from
Aug 8, 2012
Merged

Offset patch #270

merged 2 commits into from
Aug 8, 2012

Conversation

jnevelson
Copy link

If you try to query an object with an offset (but no specified limit), the gem should automatically insert a limit as well into the sql syntax (limit is requred for an offset).

Not sure if there's a better way than just putting 999999999 as the limit - any better ideas?

@brianmario
Copy link
Owner

/cc @tenderlove

@brianmario
Copy link
Owner

Looks like Arel uses 18446744073709551615 instead of 999999999 for this case. Want to just switch the value to that and I'll pull this in?

@jnevelson
Copy link
Author

Done. Let me know if there's anything else!

brianmario added a commit that referenced this pull request Aug 8, 2012
@brianmario brianmario merged commit 3793c5b into brianmario:0.2.x Aug 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants