public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git a/lib/active_record/connection_adapters/sqlserver_adapter.rb b/lib/active_record/connection_adapters/sqlserver_adapter.rb
index c583786..93ca953 100644
--- a/lib/active_record/connection_adapters/sqlserver_adapter.rb
+++ b/lib/active_record/connection_adapters/sqlserver_adapter.rb
@@ -439,7 +439,7 @@ module ActiveRecord
end
def outside_transaction?
- info_schema_query { select_value("SELECT @@TRANCOUNT") == 0 }
+ info_schema_query { select_value("SELECT @@TRANCOUNT", "SCHEMA") == 0 }
end
def begin_db_transaction

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.