Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.