提交 945c3cd5 编写于 作者: A Andrew White 提交者: GitHub

Merge pull request #28187 from kamipo/fix_intermittent_test_failure

Fix `test_apply_distinct_in_count` failure in PG adapter
......@@ -234,6 +234,9 @@ def test_apply_distinct_in_count
end
queries.each do |query|
# `table_alias_length` in `column_alias_for` would execute
# "SHOW max_identifier_length" statement in PostgreSQL adapter.
next if query == "SHOW max_identifier_length"
assert_match %r{\ASELECT(?! DISTINCT) COUNT\(DISTINCT\b}, query
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册