提交 4ef4d46d 编写于 作者: R Ryuta Kamizono

Do not `binds.dup` in `connection#to_sql`

Because `connection#to_sql` does not mutate `binds`.
上级 d8bc0964
......@@ -10,7 +10,7 @@ def initialize
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册