提交 70749815 编写于 作者: S Santiago Pastorino

Merge pull request #16528 from byroot/add-test-case-for-nested-array-in-where-conditions

Add a test case of nested empty array values in conditions
......@@ -180,6 +180,10 @@ def test_where_with_table_name_and_empty_array
assert_equal 0, Post.where(:id => []).count
end
def test_where_with_table_name_and_nested_empty_array
assert_equal [], Post.where(:id => [[]]).to_a
end
def test_where_with_empty_hash_and_no_foreign_key
assert_equal 0, Edge.where(:sink => {}).count
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册