improved sql server parser. for issue #2346

This commit is contained in:
wenshao
2018-02-20 13:07:40 +08:00
parent 87ee1fa6dc
commit 30be97f0b0
3 changed files with 29 additions and 1 deletions
@@ -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);