From a250a98a52be27700cfcf2aef236ff9a3c7304f3 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 3 Jul 2005 08:31:09 +0000 Subject: 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 --- activerecord/lib/active_record/locking.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib/active_record/locking.rb') diff --git a/activerecord/lib/active_record/locking.rb b/activerecord/lib/active_record/locking.rb index 635fae89d8..d0d6296ae7 100644 --- a/activerecord/lib/active_record/locking.rb +++ b/activerecord/lib/active_record/locking.rb @@ -34,7 +34,7 @@ module ActiveRecord 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 @@ module ActiveRecord lock_optimistically && respond_to?(:lock_version) end end -end \ No newline at end of file +end -- cgit v1.2.3