提交 36d017c4 authored 作者: Thomas Mueller's avatar Thomas Mueller

Some CLOB and BLOB values could no longer be read when the original row was…

Some CLOB and BLOB values could no longer be read when the original row was removed (even when using the MVCC mode).
上级 ee7e994c
...@@ -255,6 +255,17 @@ public class LocalResult implements ResultInterface, ResultTarget { ...@@ -255,6 +255,17 @@ public class LocalResult implements ResultInterface, ResultTarget {
return rowId; return rowId;
} }
private void cloneLobs(Value[] values) {
for (int i = 0; i < values.length; i++) {
Value v = values[i];
Value v2 = v.copyToResult();
if (v2 != v) {
session.addTemporaryLob(v2);
values[i] = v2;
}
}
}
/** /**
* Add a row to this object. * Add a row to this object.
* *
...@@ -262,6 +273,7 @@ public class LocalResult implements ResultInterface, ResultTarget { ...@@ -262,6 +273,7 @@ public class LocalResult implements ResultInterface, ResultTarget {
*/ */
@Override @Override
public void addRow(Value[] values) { public void addRow(Value[] values) {
cloneLobs(values);
if (distinct) { if (distinct) {
if (distinctRows != null) { if (distinctRows != null) {
ValueArray array = ValueArray.get(values); ValueArray array = ValueArray.get(values);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论