提交 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
......@@ -254,6 +254,17 @@ public class LocalResult implements ResultInterface, ResultTarget {
public int getRowId() {
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.
......@@ -262,6 +273,7 @@ public class LocalResult implements ResultInterface, ResultTarget {
*/
@Override
public void addRow(Value[] values) {
cloneLobs(values);
if (distinct) {
if (distinctRows != null) {
ValueArray array = ValueArray.get(values);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论