修正测试

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@169 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-21 02:53:42 +00:00
parent e707d5a0c9
commit 6e6111b147
24 changed files with 105 additions and 63 deletions
@@ -65,7 +65,16 @@ public class SQLParser {
return alias;
}
throw new ParserException("Error", 0, 0);
switch (lexer.token()) {
case KEY:
alias = lexer.token().name();
lexer.nextToken();
return alias;
default:
break;
}
throw new ParserException("Error : " + lexer.token());
}
if (lexer.token() == Token.LITERAL_ALIAS) {
@@ -78,6 +87,16 @@ public class SQLParser {
alias = "'" + lexer.stringVal() + "'";
lexer.nextToken();
}
switch (lexer.token()) {
case KEY:
alias = lexer.token().name();
lexer.nextToken();
return alias;
default:
break;
}
return alias;
}