提交 2079431b authored 作者: Thomas Mueller's avatar Thomas Mueller

Large result sets now always create temporary tables instead of temporary files.

上级 595c4dd3
...@@ -46,7 +46,7 @@ public class ConditionInSelect extends Condition { ...@@ -46,7 +46,7 @@ public class ConditionInSelect extends Condition {
query.setSession(session); query.setSession(session);
query.setDistinct(true); query.setDistinct(true);
LocalResult rows = query.query(0); LocalResult rows = query.query(0);
session.addTemporaryResult(rows); try {
Value l = left.getValue(session); Value l = left.getValue(session);
if (rows.getRowCount() == 0) { if (rows.getRowCount() == 0) {
return ValueBoolean.get(all); return ValueBoolean.get(all);
...@@ -72,6 +72,9 @@ public class ConditionInSelect extends Condition { ...@@ -72,6 +72,9 @@ public class ConditionInSelect extends Condition {
return ValueNull.INSTANCE; return ValueNull.INSTANCE;
} }
return ValueBoolean.get(false); return ValueBoolean.get(false);
} finally {
rows.close();
}
} }
private Value getValueSlow(LocalResult rows, Value l) { private Value getValueSlow(LocalResult rows, Value l) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论