Skip to content

Commit

Permalink
Backport rsim#1962 to release50 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 18, 2019
1 parent a3ed84a commit 34d1e80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
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 34d1e80

Please sign in to comment.