1
0
Fork 0
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:
Rafael França 2016-07-20 02:16:38 -03:00 committed by GitHub
commit c9061254de

View file

@ -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