mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add sql parser testcases
This commit is contained in:
@@ -288,9 +288,14 @@ public class SQLSelectParser extends SQLParser {
|
||||
|
||||
if (lexer.token() == Token.WITH) {
|
||||
lexer.nextToken();
|
||||
acceptIdentifier("ROLLUP");
|
||||
|
||||
groupBy.setWithRollUp(true);
|
||||
|
||||
if (identifierEquals("CUBE")) {
|
||||
lexer.nextToken();
|
||||
groupBy.setWithCube(true);
|
||||
} else {
|
||||
acceptIdentifier("ROLLUP");
|
||||
groupBy.setWithRollUp(true);
|
||||
}
|
||||
}
|
||||
|
||||
queryBlock.setGroupBy(groupBy);
|
||||
|
||||
Reference in New Issue
Block a user