mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed: withSubQuery parser for mysql
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user