|
|
|
@ -122,10 +122,7 @@ public final class DruidConnectionHolder {
|
|
|
|
|
if (initUnderlyHoldability) { |
|
|
|
|
try { |
|
|
|
|
this.underlyingHoldability = conn.getHoldability(); |
|
|
|
|
} catch (UnsupportedOperationException e) { |
|
|
|
|
holdabilityUnsupported = true; |
|
|
|
|
LOG.warn("getHoldability unsupported", e); |
|
|
|
|
} catch (SQLFeatureNotSupportedException e) { |
|
|
|
|
} catch (UnsupportedOperationException | AbstractMethodError | SQLFeatureNotSupportedException e) { |
|
|
|
|
holdabilityUnsupported = true; |
|
|
|
|
LOG.warn("getHoldability unsupported", e); |
|
|
|
|
} catch (SQLException e) { |
|
|
|
@ -134,8 +131,8 @@ public final class DruidConnectionHolder {
|
|
|
|
|
holdabilityUnsupported = true; |
|
|
|
|
} |
|
|
|
|
LOG.warn("getHoldability error", e); |
|
|
|
|
} catch (AbstractMethodError e) { |
|
|
|
|
LOG.warn("getHoldability unsupported", e); |
|
|
|
|
} catch (Throwable e) { |
|
|
|
|
LOG.warn("getHoldability error", e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|