Oracle支持Partition Clause

git-svn-id: http://code.alibabatech.com/svn/druid/trunk@150 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
wenshao
2011-05-19 16:34:29 +00:00
parent 7cf8fbfa9c
commit 0b5436712f
8 changed files with 144 additions and 14 deletions
@@ -47,9 +47,8 @@ public class SQLParser {
if (lexer.token() == Token.AS) {
lexer.nextToken();
// QS_TODO remove alias token
if (lexer.token() == Token.LITERAL_ALIAS) {
rtnValue = "'" + lexer.stringVal() + "'";
rtnValue = lexer.stringVal();
lexer.nextToken();
return rtnValue;
}
@@ -64,10 +63,10 @@ public class SQLParser {
}
if (lexer.token() == Token.LITERAL_ALIAS) {
rtnValue = "'" + lexer.stringVal() + "'";
rtnValue = lexer.stringVal();
lexer.nextToken();
} else if (lexer.token() == Token.IDENTIFIER) {
rtnValue = "'" + lexer.stringVal() + "'";
rtnValue = lexer.stringVal();
lexer.nextToken();
}
return rtnValue;