From 32632b9fe3f8ab04d63f153501f8b4842f9eb21a Mon Sep 17 00:00:00 2001 From: Aidan Haran Date: Thu, 28 Sep 2023 14:50:09 +0100 Subject: [PATCH] Support common table expressions Fixes ActiveRecord::WithTest#test_common_table_expressions_are_unsupported --- lib/active_record/connection_adapters/sqlserver_adapter.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/active_record/connection_adapters/sqlserver_adapter.rb b/lib/active_record/connection_adapters/sqlserver_adapter.rb index 6c7e3d6a5..f8179f86f 100644 --- a/lib/active_record/connection_adapters/sqlserver_adapter.rb +++ b/lib/active_record/connection_adapters/sqlserver_adapter.rb @@ -188,6 +188,10 @@ def supports_optimizer_hints? true end + def supports_common_table_expressions? + true + end + def supports_lazy_transactions? true end