Permalink
Browse files

r1602@asus: jeremy | 2005-07-02 14:34:00 -0700

 Don't pass connection to quoted_comma_pair_list


git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1621 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Jul 3, 2005
1 parent 9ebe33f commit a250a98a52be27700cfcf2aef236ff9a3c7304f3
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/locking.rb
@@ -34,7 +34,7 @@ def update_with_lock #:nodoc:
affected_rows = connection.update(
"UPDATE #{self.class.table_name} "+
- "SET #{quoted_comma_pair_list(connection, attributes_with_quotes(false))} " +
+ "SET #{quoted_comma_pair_list(attributes_with_quotes(false))} " +
"WHERE #{self.class.primary_key} = #{quote(id)} AND lock_version = #{quote(previous_value)}",
"#{self.class.name} Update with optimistic locking"
)
@@ -54,4 +54,4 @@ def locking_enabled? #:nodoc:
lock_optimistically && respond_to?(:lock_version)
end
end
-end
+end

0 comments on commit a250a98

Please sign in to comment.