This change in incorrect. Even the pure JDBC4 isValid() check can execute a query, and it is known that some drivers do so.

pull/538/head
Brett Wooldridge 9 years ago
parent 73410eb972
commit 1a64ab2357

@ -806,11 +806,6 @@ public class HikariConfig implements HikariConfigMXBean
throw new IllegalArgumentException("dataSource or dataSourceClassName or jdbcUrl is required.");
}
if (isIsolateInternalQueries) {
// set it false if not required
isIsolateInternalQueries = connectionInitSql != null || connectionTestQuery != null;
}
if (LOGGER.isDebugEnabled() || unitTest) {
logConfiguration();
}

Loading…
Cancel
Save