Skip to content

Commit 8e497fa

Browse files
committed
fix error message - use shadows instead overlap
1 parent d469244 commit 8e497fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/stmtwalk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,15 @@ check_variable_name(PLpgSQL_checkstate *cstate,
141141
StringInfoData str;
142142

143143
initStringInfo(&str);
144-
appendStringInfo(&str, "parameter \"%s\" is overlapped",
144+
appendStringInfo(&str, "parameter \"%s\" is shadowed",
145145
refname);
146146

147147
plpgsql_check_put_error(cstate,
148148
0, 0,
149149
str.data,
150150
is_auto ?
151-
"Local auto variable overlap function parameter." :
152-
"Local variable overlap function parameter.",
151+
"Local auto variable shadows function parameter." :
152+
"Local variable shadows function parameter.",
153153
NULL,
154154
PLPGSQL_CHECK_WARNING_OTHERS,
155155
0, NULL, NULL);

0 commit comments

Comments
 (0)