mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
refactor
This commit is contained in:
@@ -25,7 +25,6 @@ public class HiveLexer extends Lexer {
|
||||
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);
|
||||
|
||||
@@ -46,7 +46,6 @@ public class MySqlLexer extends Lexer {
|
||||
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);
|
||||
|
||||
@@ -31,7 +31,6 @@ public class OracleLexer extends Lexer {
|
||||
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);
|
||||
|
||||
@@ -350,7 +350,8 @@ public class OracleSelectParser extends SQLSelectParser {
|
||||
model.setReturnRowsClause(returnRowsClause);
|
||||
}
|
||||
|
||||
while (lexer.token() == Token.REFERENCE) {
|
||||
|
||||
while (identifierEquals("REFERENCE")) {
|
||||
ReferenceModelClause referenceModelClause = new ReferenceModelClause();
|
||||
lexer.nextToken();
|
||||
|
||||
@@ -546,7 +547,7 @@ public class OracleSelectParser extends SQLSelectParser {
|
||||
options.add(CellReferenceOption.UniqueDimension);
|
||||
} else {
|
||||
acceptIdentifier("SINGLE");
|
||||
accept(Token.REFERENCE);
|
||||
acceptIdentifier("REFERENCE");
|
||||
options.add(CellReferenceOption.UniqueDimension);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ public class PGLexer extends Lexer {
|
||||
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);
|
||||
|
||||
@@ -25,7 +25,6 @@ public class SQLServerLexer extends Lexer {
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user