mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
Oracle支持Partition Clause
git-svn-id: http://code.alibabatech.com/svn/druid/trunk@150 b9813039-fb51-4c41-a8b9-e21c2acb5095
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user