Skip to content

Commit 38035e1

Browse files
committed
fix review comments
1 parent 35766e0 commit 38035e1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/oracle_parser/ora_gram.y

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18208,9 +18208,12 @@ func_expr_common_subexpr:
1820818208
/* End - ReqID:SRS-SQL-XML */
1820918209
| USERENV '(' Sconst ')'
1821018210
{
18211+
char *normalized_param = downcase_identifier($3, strlen($3), true, true);
18212+
1821118213
#define CHECK_AND_CALL(param, func_name) \
18212-
if (strcmp(downcase_identifier($3, strlen($3), true, true), param) == 0) \
18214+
if (strcmp(normalized_param, param) == 0) \
1821318215
$$ = (Node *) makeFuncCall(OracleSystemFuncName(func_name), NIL, COERCE_EXPLICIT_CALL, @1);
18216+
1821418217
CHECK_AND_CALL("client_info", "get_client_info")
1821518218
else CHECK_AND_CALL("entryid", "get_entryid")
1821618219
else CHECK_AND_CALL("terminal", "get_terminal")

0 commit comments

Comments
 (0)