mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improved sql parser.
This commit is contained in:
@@ -343,6 +343,16 @@ public class Lexer {
|
||||
}
|
||||
|
||||
if (isFirstIdentifierChar(ch)) {
|
||||
if (ch == '(') {
|
||||
scanChar();
|
||||
token = LPAREN;
|
||||
return;
|
||||
} else if (ch == ')') {
|
||||
scanChar();
|
||||
token = RPAREN;
|
||||
return;
|
||||
}
|
||||
|
||||
if (ch == 'N') {
|
||||
if (charAt(pos + 1) == '\'') {
|
||||
++pos;
|
||||
|
||||
Reference in New Issue
Block a user