From 121b15bfc957f7c7d6fe965c126936a72c80b1c9 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 3 Jul 2005 08:31:57 +0000 Subject: r1604@asus: jeremy | 2005-07-02 14:40:20 -0700 Bring the column_quoter arg back to locking.rb. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1623 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/locking.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/locking.rb b/activerecord/lib/active_record/locking.rb index d0d6296ae7..90aba3913c 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(attributes_with_quotes(false))} " + + "SET #{quoted_comma_pair_list(connection, attributes_with_quotes(false))} " + "WHERE #{self.class.primary_key} = #{quote(id)} AND lock_version = #{quote(previous_value)}", "#{self.class.name} Update with optimistic locking" ) -- cgit v1.2.3