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:
parent
a00854e515
commit
0b4fd69b8b
@ -47,8 +47,8 @@ def initialize values
|
|||||||
|
|
||||||
def sql_for(binds, connection)
|
def sql_for(binds, connection)
|
||||||
val = @values.dup
|
val = @values.dup
|
||||||
binds = binds.dup
|
binds = connection.prepare_binds_for_database(binds)
|
||||||
@indexes.each { |i| val[i] = connection.quote(*binds.shift.reverse) }
|
@indexes.each { |i| val[i] = connection.quote(binds.shift.last) }
|
||||||
val.join
|
val.join
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user