mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve sql parser performance
This commit is contained in:
@@ -79,10 +79,6 @@ public class Lexer {
|
||||
return text.charAt(index);
|
||||
}
|
||||
|
||||
public final int indexOf(char ch, int fromIndex) {
|
||||
return text.indexOf(ch, fromIndex);
|
||||
}
|
||||
|
||||
public String addSymbol() {
|
||||
return subString(mark, bufPos);
|
||||
}
|
||||
@@ -248,6 +244,11 @@ public class Lexer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (isFirstIdentifierChar(ch) && ch != 'N') {
|
||||
scanIdentifier();
|
||||
return;
|
||||
}
|
||||
|
||||
nextToken();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user