mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #25889 from kamipo/do_not_dup_binds_in_to_sql
Do not `binds.dup` in `connection#to_sql`
This commit is contained in:
commit
c9061254de
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ module ActiveRecord
|
|||
def to_sql(arel, binds = [])
|
||||
if arel.respond_to?(:ast)
|
||||
collected = visitor.accept(arel.ast, collector)
|
||||
collected.compile(binds.dup, self)
|
||||
collected.compile(binds, self)
|
||||
else
|
||||
arel
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue