Merge pull request #2196 from JohnCailj/dev

bug fixed: withSubQuery parser for mysql
This commit is contained in:
温绍
2017-12-15 16:51:21 +08:00
committed by GitHub
2 changed files with 63 additions and 1 deletions
@@ -229,7 +229,7 @@ public class MySqlSelectParser extends SQLSelectParser {
accept(Token.RPAREN);
SQLSelectQuery query = queryRest(select.getQuery());
if (query instanceof SQLUnionQuery) {
if (query instanceof SQLUnionQuery && select.getWithSubQuery() == null) {
select.getQuery().setBracket(true);
tableSource = new SQLUnionQueryTableSource((SQLUnionQuery) query);
} else {