We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21a1962 commit 91701a6Copy full SHA for 91701a6
lib/active_record/connection_adapters/sqlserver/database_statements.rb
@@ -464,7 +464,7 @@ def finish_statement_handle(handle)
464
end
465
466
def ensure_established_connection!
467
- raise TinyTds::Error, 'SQL Server client is not connected' if @connection.nil? || !@connection.active?
+ raise TinyTds::Error, 'SQL Server client is not connected' unless @connection
468
469
yield
470
0 commit comments