提交 c3bfbecf 编写于 作者: E Ernie Miller

Don't reassign array in ToSql#visit_Arel_Nodes_NotIn

上级 c308de87
......@@ -202,8 +202,9 @@ def visit_Arel_Nodes_In o
def visit_Arel_Nodes_NotIn o
right = o.right
right = right.empty? ? 'NULL' : right.map { |x| visit x }.join(', ')
"#{visit o.left} NOT IN (#{right})"
"#{visit o.left} NOT IN (#{
right.empty? ? 'NULL' : right.map { |x| visit x }.join(', ')
})"
end
def visit_Arel_Nodes_And o
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册