提交 1ed72063 authored 作者: Owner's avatar Owner

Reverting check for lazy recursive case.

上级 5e0b3cc8
...@@ -569,8 +569,8 @@ public class Select extends Query { ...@@ -569,8 +569,8 @@ public class Select extends Query {
} }
boolean lazy = session.isLazyQueryExecution() && boolean lazy = session.isLazyQueryExecution() &&
target == null && !isForUpdate && !isQuickAggregateQuery && target == null && !isForUpdate && !isQuickAggregateQuery &&
limitRows != 0 && offsetExpr == null && isReadOnly() /*&& limitRows != 0 && offsetExpr == null && isReadOnly() &&
!hasRecursiveTableView()*/; !hasRecursiveTopTableView();
int columnCount = expressions.size(); int columnCount = expressions.size();
LocalResult result = null; LocalResult result = null;
if (!lazy && (target == null || if (!lazy && (target == null ||
...@@ -664,16 +664,16 @@ public class Select extends Query { ...@@ -664,16 +664,16 @@ public class Select extends Query {
return null; return null;
} }
// private boolean hasRecursiveTableView() { private boolean hasRecursiveTopTableView() {
// //check the top table filter only to see if we have a recursive table query //check the top table filter only to see if we have a recursive table query
//// if(this.topTableFilter.getTable().isTableExpression()){ if(this.topTableFilter.getTable().isTableExpression()){
//// TableView v = (TableView)this.topTableFilter.getTable(); TableView v = (TableView)this.topTableFilter.getTable();
//// if(v.isRecursive()){ if(v.isRecursive()){
//// return true; return true;
//// } }
//// } }
// return false; return false;
// } }
private void resetJoinBatchAfterQuery() { private void resetJoinBatchAfterQuery() {
JoinBatch jb = getJoinBatch(); JoinBatch jb = getJoinBatch();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论