1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

we should mark strings as SQL Literal values

This commit is contained in:
Aaron Patterson 2010-08-23 13:29:55 -07:00
parent 6d796a71d2
commit ee9e1570be

View file

@ -154,7 +154,7 @@ module ActiveRecord
else
# Apply limit and order only if they're both present
if @limit_value.present? == @order_values.present?
arel.update(@klass.send(:sanitize_sql_for_assignment, updates))
arel.update(Arel::SqlLiteral.new(@klass.send(:sanitize_sql_for_assignment, updates)))
else
except(:limit, :order).update_all(updates)
end