mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for mysql lexer. issue #1407
This commit is contained in:
@@ -255,8 +255,13 @@ public class MySqlLexer extends Lexer {
|
||||
|
||||
if (!isIdentifierChar(ch)) {
|
||||
if (ch == '-' && pos < text.length() - 1) {
|
||||
if (mark > 0 && text.charAt(mark - 1) == '.') {
|
||||
break;
|
||||
}
|
||||
|
||||
char next_char = text.charAt(pos + 1);
|
||||
if (isIdentifierChar(next_char)) {
|
||||
bufPos++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user