improve SQL Parser

This commit is contained in:
wenshao
2012-11-23 21:42:55 +08:00
parent 4c395ff977
commit 69d4aef7df
3 changed files with 5 additions and 29 deletions
@@ -177,8 +177,6 @@ public class MySqlLexer extends Lexer {
throw new SQLParseException("illegal identifier");
}
int hash = first;
mark = pos;
bufPos = 1;
char ch;
@@ -189,15 +187,13 @@ public class MySqlLexer extends Lexer {
break;
}
hash = 31 * hash + ch;
bufPos++;
continue;
}
this.ch = charAt(pos);
stringVal = addSymbol(hash);
stringVal = addSymbol();
Token tok = keywods.getKeyword(stringVal);
if (tok != null) {
token = tok;