提交 dca8e4cb authored 作者: Thomas Mueller's avatar Thomas Mueller

In-memory databases now can have transaction ids.

上级 152237c3
...@@ -1374,15 +1374,15 @@ public class Session extends SessionWithState { ...@@ -1374,15 +1374,15 @@ public class Session extends SessionWithState {
} }
public Value getTransactionId() { public Value getTransactionId() {
if (!database.isPersistent()) {
return ValueNull.INSTANCE;
}
if (database.getMvStore() != null) { if (database.getMvStore() != null) {
if (transaction == null) { if (transaction == null) {
return ValueNull.INSTANCE; return ValueNull.INSTANCE;
} }
return ValueString.get(Long.toString(getTransaction().getId())); return ValueString.get(Long.toString(getTransaction().getId()));
} }
if (!database.isPersistent()) {
return ValueNull.INSTANCE;
}
if (undoLog.size() == 0) { if (undoLog.size() == 0) {
return ValueNull.INSTANCE; return ValueNull.INSTANCE;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论