Skip to content

Commit d99b973

Browse files
committed
update initdb.c
1 parent 252ca57 commit d99b973

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/backend/parser/scansup.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,6 @@ 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] == '/')
155-
{
156-
result = palloc0(len + 1);
157-
memcpy(result, ident, len);
158-
return result;
159-
}
160-
}*/
161150

162151
upper_ident = upcase_identifier(ident, len, true, true);
163152
lower_ident = downcase_identifier(ident, len, true, true);

src/bin/initdb/initdb.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3706,8 +3706,7 @@ main(int argc, char *argv[])
37063706
/* Oracle compatibility: transform uppercase usernames to lowercase. */
37073707
if (database_mode == DB_ORACLE && username != NULL
37083708
&& caseswitchmode != NORMAL
3709-
&& is_all_upper(username, strlen(username), encodingid)
3710-
&& !strchr(username, '/'))
3709+
&& is_all_upper(username, strlen(username), encodingid))
37113710
{
37123711
username = down_character(username, strlen(username), encodingid);
37133712
}

0 commit comments

Comments
 (0)