mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column in #insert to match replacement in #exec_query.
This commit is contained in:
parent
59ce0f695b
commit
bc50c1cb02
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ module ActiveRecord
|
|||
end
|
||||
|
||||
substitutes.each_with_index do |tuple, i|
|
||||
tuple[1] = conn.substitute_at(tuple.first, i)
|
||||
tuple[1] = conn.substitute_at(binds[i][0], i)
|
||||
end
|
||||
|
||||
if values.empty? # empty insert
|
||||
|
|
Loading…
Reference in a new issue