Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

The #substitute_at gets an ActiveRecord::ConnectionAdapters::Column i…

…n #insert to match replacement in #exec_query.
  • Loading branch information...
commit bc50c1cb02c317ef92e4aa0336d396dcad5bc578 1 parent 59ce0f6
@metaskills metaskills authored tenderlove committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation.rb
View
2  activerecord/lib/active_record/relation.rb
@@ -56,7 +56,7 @@ def insert(values)
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
Please sign in to comment.
Something went wrong with that request. Please try again.