Skip to content

Commit e3aba95

Browse files
authored
Coerce test (#1229)
1 parent 7b66df0 commit e3aba95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/cases/coerced_tests.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,9 @@ def test_distinct_count_all_with_custom_select_and_order_coerced
520520

521521
# SELECT columns must be in the GROUP clause. Since since `ids` only selects the primary key you cannot perform this query in SQL Server.
522522
coerce_tests! :test_ids_with_includes_and_non_primary_key_order
523+
524+
# To limit the results in SQL Server we use `FETCH NEXT @0 ROWS ONLY` instead of `LIMIT @0`. To use `FETCH NEXT` an order must be provided.
525+
coerce_tests! :test_no_order_by_when_counting_all
523526
end
524527

525528
module ActiveRecord

0 commit comments

Comments
 (0)