From f9cf4b16a010ce16607b8c4bc1f7c9f695cf1f7f Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Mon, 30 Sep 2024 14:16:49 +0100 Subject: [PATCH] Coerce test --- test/cases/coerced_tests.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cases/coerced_tests.rb b/test/cases/coerced_tests.rb index a5a171203..a39927864 100644 --- a/test/cases/coerced_tests.rb +++ b/test/cases/coerced_tests.rb @@ -520,6 +520,9 @@ def test_distinct_count_all_with_custom_select_and_order_coerced # SELECT columns must be in the GROUP clause. Since since `ids` only selects the primary key you cannot perform this query in SQL Server. coerce_tests! :test_ids_with_includes_and_non_primary_key_order + + # 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. + coerce_tests! :test_no_order_by_when_counting_all end module ActiveRecord