mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql server parser. for issue #2346
This commit is contained in:
@@ -2741,6 +2741,12 @@ public class SQLExprParser extends SQLParser {
|
||||
accept(Token.KEY);
|
||||
|
||||
SQLPrimaryKeyImpl pk = new SQLPrimaryKeyImpl();
|
||||
|
||||
if (lexer.identifierEquals(FnvHash.Constants.CLUSTERED)) {
|
||||
lexer.nextToken();
|
||||
pk.setClustered(true);
|
||||
}
|
||||
|
||||
accept(Token.LPAREN);
|
||||
orderBy(pk.getColumns(), pk);
|
||||
accept(Token.RPAREN);
|
||||
|
||||
Reference in New Issue
Block a user