Skip to content

Commit fea63a9

Browse files
aidanharanAidan Haran
andauthored
Coerce test as SQL is invalid for MSSQL (#905)
Co-authored-by: Aidan Haran <aharan@fusioneer.com>
1 parent 887683e commit fea63a9

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
@@ -813,6 +813,9 @@ def test_implicit_order_for_model_without_primary_key_coerced
813813
ensure
814814
NonPrimaryKey.implicit_order_column = old_implicit_order_column
815815
end
816+
817+
# SQL Server is unable to use aliased SELECT in the HAVING clause.
818+
coerce_tests! :test_include_on_unloaded_relation_with_having_referencing_aliased_select
816819
end
817820

818821
module ActiveRecord

0 commit comments

Comments
 (0)