Merge pull request #446 from jack-kerouac/set-login-timeout-unsupported

do not fail if setLoginTimeout on delegate data source is not supported
pull/448/head
Brett Wooldridge 10 years ago
commit b08f693d9c

@ -525,7 +525,7 @@ abstract class PoolBase
try {
dataSource.setLoginTimeout((int) TimeUnit.MILLISECONDS.toSeconds(Math.max(1000L, connectionTimeout)));
}
catch (SQLException e) {
catch (SQLException | UnsupportedOperationException e) {
LOGGER.warn("{} - Unable to set DataSource login timeout", poolName, e);
}
}

Loading…
Cancel
Save