support interval alias

This commit is contained in:
wenshao
2013-10-03 13:06:45 +08:00
parent fb4e239855
commit 4411872564
2 changed files with 65 additions and 0 deletions
@@ -170,6 +170,7 @@ public class SQLParser {
switch (lexer.token()) {
case KEY:
case INTERVAL:
alias = lexer.token().name();
lexer.nextToken();
return alias;