diff options
Diffstat (limited to 'lib/arel/visitors')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 710b6143ec..2ccc9d7d3f 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -179,9 +179,7 @@ module Arel end def visit_Arel_Nodes_Assignment o - right = o.right - - right = right.nil? ? 'NULL' : visit(right) + right = quote(o.right, o.left.column) "#{visit o.left} = #{right}" end |