improve sql wall

This commit is contained in:
wenshao
2013-08-28 10:25:16 +08:00
parent d36a6eadcc
commit 9b8d165790
20 changed files with 357 additions and 29 deletions
@@ -62,6 +62,10 @@ public class SQLSelectParser extends SQLParser {
if (select.getOrderBy() == null) {
select.setOrderBy(parseOrderBy());
}
if (lexer.token() == Token.HINT) {
this.exprParser.parseHints(select.getHints());
}
return select;
}
@@ -290,11 +290,6 @@ public class SQLStatementParser extends SQLParser {
continue;
}
if (lexer.token() == Token.HINT) {
lexer.nextToken();
continue;
}
if (lexer.token() == Token.COMMENT) {
statementList.add(this.parseComment());
continue;