mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
enhance sql parser & add test
This commit is contained in:
@@ -198,6 +198,12 @@ public class SQLExprParser extends SQLParser {
|
||||
sqlExpr = new SQLDefaultExpr();
|
||||
lexer.nextToken();
|
||||
break;
|
||||
case USER:
|
||||
case PASSWORD:
|
||||
case DUAL:
|
||||
sqlExpr = new SQLIdentifierExpr(lexer.stringVal());
|
||||
lexer.nextToken();
|
||||
break;
|
||||
case CASE:
|
||||
SQLCaseExpr caseExpr = new SQLCaseExpr();
|
||||
lexer.nextToken();
|
||||
|
||||
@@ -102,6 +102,7 @@ public enum Token {
|
||||
KILL("KILL"),
|
||||
IDENTIFIED("IDENTIFIED"),
|
||||
PASSWORD("PASSWORD"),
|
||||
DUAL("DUAL"),
|
||||
|
||||
//postgresql
|
||||
WINDOW("WINDOW"),
|
||||
|
||||
Reference in New Issue
Block a user