From e458578a95d04cf920960c726a6cb5e4fd021d79 Mon Sep 17 00:00:00 2001 From: zhenggli Date: Wed, 24 Apr 2024 15:36:54 -0500 Subject: [PATCH] Fix unit test --- .../druid/sql/dialect/oracle/parser/OracleExprParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java b/core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java index dfb11ebab3..e07533fe4d 100644 --- a/core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java +++ b/core/src/main/java/com/alibaba/druid/sql/dialect/oracle/parser/OracleExprParser.java @@ -423,8 +423,8 @@ public SQLExpr primary() { lexer.nextToken(); break; case IDENTIFIER: - sqlExpr = new SQLUnaryExpr(SQLUnaryOperator.Negative, new SQLIdentifierExpr(lexer.stringVal())); - lexer.nextToken(); + sqlExpr = primary(); + sqlExpr = new SQLUnaryExpr(SQLUnaryOperator.Negative, sqlExpr); break; case VARIANT: case QUES: