enhance mysql sql parser support

This commit is contained in:
温少
2012-05-15 17:15:06 +08:00
parent 31e71f6c91
commit cd36f31b77
34 changed files with 1891 additions and 88 deletions
@@ -124,6 +124,13 @@ public class SQLParser {
}
}
public void match(Token token) {
if (lexer.token() != token) {
throw new SQLParseException("syntax error, expect " + token + ", actual " + lexer.token() + " "
+ lexer.stringVal());
}
}
private int errorEndPos = -1;
protected void setErrorEndPos(int errPos) {
@@ -131,4 +138,5 @@ public class SQLParser {
errorEndPos = errPos;
}
}
}