-
Notifications
You must be signed in to change notification settings - Fork 376
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
order by with raw SQL #311
Labels
Comments
Closed
This is on the TODO list and will be implemented soon. |
This is a bit tricky if we want to reuse the .find.order("name ASC") ...
.find.order("name ASC", []) ... will have a different signature and hence be treated as SQL and escaped properly. We might have to add another function like |
dxg
added a commit
that referenced
this issue
Sep 10, 2013
dxg
added a commit
that referenced
this issue
Sep 10, 2013
dxg
added a commit
that referenced
this issue
Sep 10, 2013
dxg
added a commit
that referenced
this issue
Sep 10, 2013
Allow ordering by escaped sql Closes #311
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Very similar to #304 , it would be nice to be able to order by some raw (but properly escaped) SQL. My case is:
Two problems with this; first, it doesn't take ? and a list. Second, even a properly formed query gets quoted like it's an identifier.
The text was updated successfully, but these errors were encountered: