提交 5a67d47a 编写于 作者: A Aaron Patterson

quoting update values using the column

上级 dd425e12
......@@ -5,6 +5,10 @@ def initialize attribute
@attribute = attribute
end
def column
@attribute.column
end
def name
@attribute.name
end
......
......@@ -179,9 +179,7 @@ def visit_Arel_Nodes_Or o
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册