Only throwing warning for autocommit when server is not set to use autocommit-friendly TransactionManager. (#1085)

This commit is contained in:
Roy de Bokx authored and Rob Bygrave committed 2017-08-30 20:57:49 +12:00
1 parent c00febd95b
commit 5e6be40454
1 file changed
+1 -1
@@ -349,7 +349,7 @@ public class DefaultContainer implements SpiContainer {
Connection c = null;
try {
c = serverConfig.getDataSource().getConnection();
if (c.getAutoCommit()) {
if (!serverConfig.isAutoCommitMode() && c.getAutoCommit()) {
logger.warn("DataSource [{}] has autoCommit defaulting to true!", serverConfig.getName());
}
return true;