Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify jdbc adapter exception handling to work around ::NativeExcepti…
…on deprecation in JRuby 9.2 This creates a Sequel::JDBC::NativeException alias for java.lang.Exception. Because java.sql.SQLException is a subclass of java.lang.Exception, we can chagne the rescue classes to remove JavaSQL::SQLException. While here, don't create a new array each time in Database#database_error_classes, use a shared frozen constant, moving the implementation from the jdbc/postgresql adapter to the main jdbc adapter.
- Loading branch information
1 parent
118d193
commit b4fab95
Showing
3 changed files
with
15 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters