Skip to content

Commit 9e43ab3

Browse files
committed
Remove useless unconstify
Digging into the history, this was not necessary even when it was added, but might have been some time before that. In any case, there is no use for this now.
1 parent bbd4c05 commit 9e43ab3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2621,7 +2621,7 @@ seq_search_localized(const char *name, char **array, int *len, Oid collid)
26212621
* Fold to upper case, then to lower case, so that we can match reliably
26222622
* even in languages in which case conversions are not injective.
26232623
*/
2624-
upper_name = str_toupper(unconstify(char *, name), strlen(name), collid);
2624+
upper_name = str_toupper(name, strlen(name), collid);
26252625
lower_name = str_tolower(upper_name, strlen(upper_name), collid);
26262626
pfree(upper_name);
26272627

0 commit comments

Comments
 (0)