mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor
This commit is contained in:
@@ -41,7 +41,6 @@ public class Keywords {
|
||||
map.put("FOR", Token.FOR);
|
||||
map.put("SCHEMA", Token.SCHEMA);
|
||||
map.put("FOREIGN", Token.FOREIGN);
|
||||
map.put("REFERENCE", Token.REFERENCE);
|
||||
map.put("REFERENCES", Token.REFERENCES);
|
||||
map.put("CHECK", Token.CHECK);
|
||||
map.put("PRIMARY", Token.PRIMARY);
|
||||
|
||||
@@ -214,7 +214,6 @@ public class SQLExprParser extends SQLParser {
|
||||
case USER:
|
||||
case PASSWORD:
|
||||
case DUAL:
|
||||
case REFERENCE:
|
||||
case KEY:
|
||||
case DISTINCT:
|
||||
case LIMIT:
|
||||
@@ -615,9 +614,6 @@ public class SQLExprParser extends SQLParser {
|
||||
} else if (lexer.token() == Token.IDENTIFIER) {
|
||||
identName = lexer.stringVal();
|
||||
|
||||
lexer.nextToken();
|
||||
} else if (lexer.token() == Token.REFERENCE) {
|
||||
identName = lexer.stringVal();
|
||||
lexer.nextToken();
|
||||
} else {
|
||||
throw new ParserException("error " + lexer.token());
|
||||
|
||||
@@ -53,7 +53,6 @@ public enum Token {
|
||||
DISTINCT("DISTINCT"),
|
||||
UNIQUE("UNIQUE"),
|
||||
FOREIGN("FOREIGN"),
|
||||
REFERENCE("REFERENCE"),
|
||||
REFERENCES("REFERENCES"),
|
||||
ALL("ALL"),
|
||||
UNION("UNION"),
|
||||
|
||||
Reference in New Issue
Block a user