Stop passing a column to quote when executing from a statement cache

I'm planning on deprecating the column argument to mirror the
deprecation in [arel].

[arel]: 6160bfbda1
This commit is contained in:
Sean Griffin 2015-01-10 13:08:25 -07:00
parent a00854e515
commit 0b4fd69b8b

@ -47,8 +47,8 @@ def initialize values
def sql_for(binds, connection)
val = @values.dup
binds = binds.dup
@indexes.each { |i| val[i] = connection.quote(*binds.shift.reverse) }
binds = connection.prepare_binds_for_database(binds)
@indexes.each { |i| val[i] = connection.quote(binds.shift.last) }
val.join
end
end