Skip to content

Commit 1ba7c89

Browse files
committed
Update scansup.c
1 parent c35e499 commit 1ba7c89

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/backend/parser/scansup.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,17 @@ char *
147147
identifier_case_transform(const char *ident, int len)
148148
{
149149
char *upper_ident = NULL, *lower_ident = NULL, *result = NULL;
150+
int i;
151+
152+
for (i = 0; i < len; i++)
153+
{
154+
if (ident[i] == '/' || ident[i] == '.')
155+
{
156+
result = palloc0(len + 1);
157+
memcpy(result, ident, len);
158+
return result;
159+
}
160+
}
150161

151162
upper_ident = upcase_identifier(ident, len, true, true);
152163
lower_ident = downcase_identifier(ident, len, true, true);

0 commit comments

Comments
 (0)