提交 46538a69 authored 作者: christian.peter.io's avatar christian.peter.io

server-less multi-connection mode: don't try to get write access in close if…

server-less multi-connection mode: don't try to get write access in close if read-only, fixes corrupt databases
上级 b7bdd31d
......@@ -305,7 +305,9 @@ public class JdbcConnection extends TraceObject implements Connection {
synchronized (session) {
if (!session.isClosed()) {
try {
rollbackInternal();
if (!session.isReconnectNeeded(true)) {
rollbackInternal();
}
commit = closeAndSetNull(commit);
rollback = closeAndSetNull(rollback);
setAutoCommitTrue = closeAndSetNull(setAutoCommitTrue);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论