Merge pull request #1385 from DataDog/tyler/extend-jdbc-catch
Extend JDBC catch to include Errors
This commit is contained in:
commit
cd3cbc9c2d
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -251,7 +251,7 @@ class TestConnection implements Connection {
|
|||
|
||||
@Override
|
||||
Properties getClientInfo() throws SQLException {
|
||||
throw new UnsupportedOperationException("Test 123")
|
||||
throw new Throwable("Test 123")
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue