forked from brynary/arel
-
Notifications
You must be signed in to change notification settings - Fork 390
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
arel 2.2.3 take() becomes -1 when skip() is used #136
Comments
The
Hope that helps. |
I have upgraded to Arel 3.0.2 and this issue no longer occurs. :-) |
I found the actual problem in this monkey patch from my own code: class Arel::Nodes::Node
# allow boolean compositions
alias & and
alias | or
alias ! not # <== causes the "LIMIT -1" bug!
end Solved it by using |
Thanks for following up! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
In arel 2.2.3, I observe that
take(
n)
is being forced intoLIMIT -1
(regardless of n value) when skip() is also used:I expect
take(
n)
to becomeLIMIT
n in the generated SQL query.Thanks for your consideration.
The text was updated successfully, but these errors were encountered: