lib/sequel/adapters/tinytds.rb in sequel-5.28.0 vs lib/sequel/adapters/tinytds.rb in sequel-5.29.0
- old
+ new
@@ -143,10 +143,10 @@
Dataset
end
# Return true if the :conn argument is present and not active.
def disconnect_error?(e, opts)
- super || (opts[:conn] && !opts[:conn].active?) || ((e.is_a?(::TinyTds::Error) && /\A(Attempt to initiate a new Adaptive Server operation with results pending|The request failed to run because the batch is aborted, this can be caused by abort signal sent from client|Adaptive Server connection timed out)/.match(e.message)))
+ super || (opts[:conn] && !opts[:conn].active?) || ((e.is_a?(::TinyTds::Error) && /\A(Attempt to initiate a new Adaptive Server operation with results pending|The request failed to run because the batch is aborted, this can be caused by abort signal sent from client|Adaptive Server connection timed out|DBPROCESS is dead or not enabled)/.match(e.message)))
end
# Dispose of any possible results of execution.
def log_connection_execute(conn, sql)
log_connection_yield(sql, conn){conn.execute(sql).each}