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:
parent
6d796a71d2
commit
ee9e1570be
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue