mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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
This commit is contained in:
parent
96c60b0ec6
commit
121b15bfc9
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ module ActiveRecord
|
||||||
|
|
||||||
affected_rows = connection.update(
|
affected_rows = connection.update(
|
||||||
"UPDATE #{self.class.table_name} "+
|
"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)}",
|
"WHERE #{self.class.primary_key} = #{quote(id)} AND lock_version = #{quote(previous_value)}",
|
||||||
"#{self.class.name} Update with optimistic locking"
|
"#{self.class.name} Update with optimistic locking"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue