mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & remove unused code
This commit is contained in:
@@ -116,6 +116,8 @@ public class Keywords {
|
||||
map.put("USE", Token.USE);
|
||||
|
||||
map.put("REPLACE", Token.REPLACE);
|
||||
|
||||
map.put("COMMENT", Token.COMMENT);
|
||||
|
||||
DEFAULT_KEYWORDS = new Keywords(map);
|
||||
}
|
||||
|
||||
@@ -228,6 +228,11 @@ public class SQLStatementParser extends SQLParser {
|
||||
lexer.nextToken();
|
||||
continue;
|
||||
}
|
||||
|
||||
if (lexer.token() == Token.COMMENT) {
|
||||
statementList.add(this.parseComment());
|
||||
continue;
|
||||
}
|
||||
|
||||
throw new ParserException("syntax error, " + lexer.token() + " " + lexer.stringVal() + ", pos "
|
||||
+ lexer.pos());
|
||||
|
||||
Reference in New Issue
Block a user