Skip to content

Commit

Permalink
Backport rsim#1962 to release52 branch
Browse files Browse the repository at this point in the history
Updated manually because there is a git conflict to backport rsim#1962 to release52.
  • Loading branch information
yahonda committed Dec 19, 2019
1 parent a3ed84a commit 1ab57bb
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -263,7 +263,7 @@ def write_lobs(table_name, klass, attributes, columns) #:nodoc:
value = klass.attribute_types[col.name].serialize(value)
end
uncached do
unless lob_record = select_one(<<-SQL.strip.gsub(/\s+/, " "), "Writable Large Object")
unless lob_record = select_one(sql = <<-SQL.strip.gsub(/\s+/, " "), "Writable Large Object")
SELECT #{quote_column_name(col.name)} FROM #{quote_table_name(table_name)}
WHERE #{quote_column_name(klass.primary_key)} = #{id} FOR UPDATE
SQL
Expand Down

0 comments on commit 1ab57bb

Please sign in to comment.