diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-07-20 02:16:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-20 02:16:38 -0300 |
commit | c9061254de48437924293ef0e797365527107dc1 (patch) | |
tree | a2c2674b0b75f2952d319c5df2cb2b2ac26e94a6 | |
parent | 0d42c906c5354950ce1b185b3ff3408908929ec1 (diff) | |
parent | 4ef4d46d0ccf51dfe86ece2055d62b26c4de339c (diff) | |
download | rails-c9061254de48437924293ef0e797365527107dc1.tar.gz rails-c9061254de48437924293ef0e797365527107dc1.tar.bz2 rails-c9061254de48437924293ef0e797365527107dc1.zip |
Merge pull request #25889 from kamipo/do_not_dup_binds_in_to_sql
Do not `binds.dup` in `connection#to_sql`
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb index 507a925d32..74aae3a1e4 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb @@ -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 |