mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser. issue #1321
This commit is contained in:
@@ -1549,8 +1549,8 @@ public class SQLStatementParser extends SQLParser {
|
||||
}
|
||||
}
|
||||
} else if (acceptSubQuery && (lexer.token() == Token.SELECT || lexer.token() == Token.LPAREN)) {
|
||||
SQLQueryExpr queryExpr = (SQLQueryExpr) this.exprParser.expr();
|
||||
insertStatement.setQuery(queryExpr.getSubQuery());
|
||||
SQLSelect select = this.createSQLSelectParser().select();
|
||||
insertStatement.setQuery(select);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user