提交 edd31bed authored 作者: Noel Grandin's avatar Noel Grandin

oldViewFound has to be null at this point, so the if is unnecessary

上级 80b0aabc
...@@ -5259,15 +5259,14 @@ public class Parser { ...@@ -5259,15 +5259,14 @@ public class Parser {
} }
oldViewFound = null; oldViewFound = null;
} }
// this table is created as a work around because recursive /*
// table expressions need to reference something that look like * This table is created as a workaround because recursive table
// themselves * expressions need to reference something that look like themselves to
// to work (its removed after creation in this method) * work (its removed after creation in this method). Only create table
// only create table data and table if we don't have a working CTE already * data and table if we don't have a working CTE already.
if (oldViewFound == null) { */
recursiveTable = TableView.createShadowTableForRecursiveTableExpression(isPersistent, session, cteViewName, recursiveTable = TableView.createShadowTableForRecursiveTableExpression(
schema, columns, db); isPersistent, session, cteViewName, schema, columns, db);
}
List<Column> columnTemplateList; List<Column> columnTemplateList;
String[] querySQLOutput = new String[]{null}; String[] querySQLOutput = new String[]{null};
try { try {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论