Skip to content

Commit 91701a6

Browse files
committed
Revert "check connection active to prevent usage of dead/closed connection"
This reverts commit 6861763.
1 parent 21a1962 commit 91701a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/sqlserver/database_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def finish_statement_handle(handle)
464464
end
465465

466466
def ensure_established_connection!
467-
raise TinyTds::Error, 'SQL Server client is not connected' if @connection.nil? || !@connection.active?
467+
raise TinyTds::Error, 'SQL Server client is not connected' unless @connection
468468

469469
yield
470470
end

0 commit comments

Comments
 (0)