Permalink
Browse files

Dont prefix on updates and deletes, only selects

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent ffdd4bc commit 5e9dc49744bc16e7d6c591ee6837eae26c6aa12f @dhh dhh committed Apr 17, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/has_many_association.rb
@@ -113,7 +113,7 @@ def delete_records(records)
else
ids = quoted_record_ids(records)
@association_class.update_all(
- "#{@association_class.table_name}.#{@association_class_primary_key_name} = NULL",
+ "#{@association_class_primary_key_name} = NULL",
"#{@association_class_primary_key_name} = #{@owner.quoted_id} AND #{@association_class.primary_key} IN (#{ids})"
)
end

0 comments on commit 5e9dc49

Please sign in to comment.