提交 ee84407d authored 作者: Owner's avatar Owner

Tieing never lazy to recursive, part 2

上级 74c1d5fd
...@@ -122,9 +122,9 @@ public class TableView extends Table { ...@@ -122,9 +122,9 @@ public class TableView extends Table {
throw DbException.getSyntaxError(sql, 0); throw DbException.getSyntaxError(sql, 0);
} }
Query q = (Query) p; Query q = (Query) p;
if(isTableExpression){ // only potentially recursive cte queries need to be non-lazy
// only potentially recursive queries need to be non-lazy if(isTableExpression && allowRecursive){
q.setNeverLazy(allowRecursive); q.setNeverLazy(true);
} }
return q; return q;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论