提交 73112de8 authored 作者: Thomas Mueller's avatar Thomas Mueller

Support non-persistent temp tables

上级 fd8b08fc
...@@ -1764,8 +1764,7 @@ public class Parser { ...@@ -1764,8 +1764,7 @@ public class Parser {
ExpressionColumn leftCol = (ExpressionColumn) r; ExpressionColumn leftCol = (ExpressionColumn) r;
ExpressionColumn rightCol = (ExpressionColumn) right; ExpressionColumn rightCol = (ExpressionColumn) right;
ObjectArray<TableFilter> filters = currentSelect.getTopFilters(); ObjectArray<TableFilter> filters = currentSelect.getTopFilters();
for (int i = 0; filters != null && i < filters.size(); i++) { for (TableFilter f : filters) {
TableFilter f = filters.get(i);
while (f != null) { while (f != null) {
leftCol.mapColumns(f, 0); leftCol.mapColumns(f, 0);
rightCol.mapColumns(f, 0); rightCol.mapColumns(f, 0);
...@@ -4694,7 +4693,11 @@ public class Parser { ...@@ -4694,7 +4693,11 @@ public class Parser {
command.setOnCommitTruncate(); command.setOnCommitTruncate();
} }
} else if (readIf("NOT")) { } else if (readIf("NOT")) {
read("LOGGED"); if (readIf("PERSISTENT")) {
command.setPersistData(false);
} else {
read("LOGGED");
}
} }
} else if (!persistIndexes && readIf("NOT")) { } else if (!persistIndexes && readIf("NOT")) {
read("PERSISTENT"); read("PERSISTENT");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论