bug fixed: withSubQuery parser for mysql

This commit is contained in:
林夕
2017-12-15 16:47:37 +08:00
parent 1fd31a9d42
commit a68a56af0f
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 {