-
Notifications
You must be signed in to change notification settings - Fork 21.6k
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Rails 3.2.12 breaks some find_by_sql queries #9257
Labels
Comments
The breaking part is the sanitize_sql_for_conditions, as it attempts to look up table |
I think this will be fixed by pull #9265 |
This was referenced Feb 12, 2013
Should this still be open? |
Nope, the integer quoting has been reverted. |
We probably missing closing this one, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using the ajaxful_rating gem on a project, and upgrading to 3.2.12 broke a complex join query with this method:
Under 3.2.12 this caused a Postgres error:
I was able to get this working under 3.2.12 using a revised method:
As you can see, I've only added
to_s
to the rateable_type and attr_name conditions. I believe this is related to the quoting changes made to ActiveRecord in 3.2.12, but I don't know the code well enough to pinpoint this yet.The text was updated successfully, but these errors were encountered: