support mysql 8.0 syntax

This commit is contained in:
高铁
2021-03-05 15:45:10 +08:00
parent 62deb5f5b1
commit 4c14244aee
7 changed files with 73 additions and 0 deletions
@@ -5896,6 +5896,9 @@ public class SQLStatementParser extends SQLParser {
for (int i = 0; ; ++i) {
int startPos = lexer.pos - 1;
if (lexer.token == Token.ROW) {
lexer.nextToken();
}
if (lexer.token != Token.LPAREN) {
throw new ParserException("syntax error, expect ')', " + lexer.info());
}