提交 c9845f0a authored 作者: Thomas Mueller's avatar Thomas Mueller

Multiple UNION queries could not be used in derived tables.

上级 39bad15a
...@@ -295,9 +295,8 @@ public class SelectUnion extends Query { ...@@ -295,9 +295,8 @@ public class SelectUnion extends Query {
public String getPlanSQL() { public String getPlanSQL() {
StringBuffer buff = new StringBuffer(); StringBuffer buff = new StringBuffer();
buff.append('(');
buff.append(left.getPlanSQL()); buff.append(left.getPlanSQL());
buff.append(") "); buff.append(' ');
switch (unionType) { switch (unionType) {
case UNION_ALL: case UNION_ALL:
buff.append("UNION ALL "); buff.append("UNION ALL ");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论