Skip to content

Commit

Permalink
Also disable the use of SQL states in the jdbc/sqlserver adapter
Browse files Browse the repository at this point in the history
Similar to jdbc/sqlanywhere, apparently jdbc/sqlserver does not
correct use SQL states.
  • Loading branch information
jeremyevans committed Oct 31, 2023
1 parent cddac82 commit a968cf7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sequel/adapters/jdbc/sqlserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a968cf7

Please sign in to comment.