1
0
Fork 0
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:
Ken Collins 2011-04-22 19:55:42 +08:00 committed by Aaron Patterson
parent 59ce0f695b
commit bc50c1cb02

View file

@ -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