ConnectionHandle.sendInitSQL(result, this.getConfig().getInitSQL());
} catch (SQLException e) {
// call the hook, if available.
if (connectionHook != null){
tryAgain = connectionHook.onAcquireFail(e, acquireConfig);
} else {
logger.error(String.format("Failed to acquire connection to %s. Sleeping for %d ms. Attempts left: %d", url, acquireRetryDelayInMs, acquireRetryAttempts), e);
try {
if (acquireRetryAttempts > 0){