fix(数据集): with查询支持变量

This commit is contained in:
taojinlong 2022-08-26 11:08:22 +08:00
parent 074ca0f23c
commit 2a16f1fc5f

View File

@ -1045,7 +1045,7 @@ public class DataSetTableService {
builder.append(" ");
for (Iterator<WithItem> iter = select.getWithItemsList().iterator(); iter.hasNext(); ) {
WithItem withItem = iter.next();
builder.append(withItem.toString());
builder.append(withItem.getName() + " AS ( " + removeVariables(withItem.getSubSelect().toString()) + " ) ");
if (iter.hasNext()) {
builder.append(",");
}