diff --git a/lib/sequel/adapters/jdbc/sqlserver.rb b/lib/sequel/adapters/jdbc/sqlserver.rb index 1bdb25ba4..5b55a3e63 100644 --- a/lib/sequel/adapters/jdbc/sqlserver.rb +++ b/lib/sequel/adapters/jdbc/sqlserver.rb @@ -79,6 +79,10 @@ def _metadata_dataset super.with_extend(MetadataDatasetMethods) end + def database_exception_use_sqlstates? + false + end + def disconnect_error?(exception, opts) super || (exception.message =~ /connection is closed/) end