Extend JDBC catch to include Errors
This should help resolve a situation where `getClientInfo` is not implemented and throws an `AbstractMethodError`.
This commit is contained in:
parent
437e0f343d
commit
fe0b8f5e50
|
@ -73,7 +73,7 @@ public class JDBCDecorator extends DatabaseClientDecorator<DBInfo> {
|
|||
if (url != null) {
|
||||
try {
|
||||
dbInfo = JDBCConnectionUrlParser.parse(url, connection.getClientInfo());
|
||||
} catch (final Exception ex) {
|
||||
} catch (final Throwable ex) {
|
||||
// getClientInfo is likely not allowed.
|
||||
dbInfo = JDBCConnectionUrlParser.parse(url, null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue