Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Work around undiagnosed bug that's draining a relation's bind_values

  • Loading branch information...
commit 08477a651648ba4417ded128aa37b9ae0dcbc9ce 1 parent d5354af
@jeremy jeremy authored
View
1  activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb
@@ -4,6 +4,7 @@ module DatabaseStatements
# Converts an arel AST to SQL
def to_sql(arel, binds = [])
if arel.respond_to?(:ast)
+ binds = binds.dup
visitor.accept(arel.ast) do
quote(*binds.shift.reverse)
end

1 comment on commit 08477a6

@rafaelfranca

@jeremy do you remember which is the bug? This change introduced a issue when prepared statements are disabled. See: #12023

Please sign in to comment.
Something went wrong with that request. Please try again.