Fixes #1116 Only set readOnly/autoCommit during connection setup if they differ from defaults.

pull/1129/merge
Brett Wooldridge 7 years ago
parent 25f8ab1c1e
commit 36ffcafe83

@ -406,8 +406,13 @@ abstract class PoolBase
setNetworkTimeout(connection, validationTimeout);
}
if (connection.isReadOnly() != isReadOnly) {
connection.setReadOnly(isReadOnly);
}
if (connection.getAutoCommit() != isAutoCommit) {
connection.setAutoCommit(isAutoCommit);
}
checkDriverSupport(connection);

Loading…
Cancel
Save