提交 ab941705 编写于 作者: S Serge Rider

#6618 Commit/rollback commands are enabled always (in manual txn mode)

上级 cde25aa0
......@@ -94,8 +94,10 @@ public class DataSourcePropertyTester extends PropertyTester
}
case PROP_TRANSACTION_ACTIVE:
if (context != null && context.isConnected()) {
boolean active = QMUtils.isTransactionActive(context);
return Boolean.valueOf(active).equals(expectedValue);
DBCTransactionManager txnManager = DBUtils.getTransactionManager(context);
return txnManager != null && !txnManager.isAutoCommit();
// boolean active = QMUtils.isTransactionActive(context);
// return Boolean.valueOf(active).equals(expectedValue);
}
return Boolean.FALSE.equals(expectedValue);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册