1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

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.
This commit is contained in:
Peter Eisentraut
2024-09-06 11:25:48 +02:00
parent bbd4c058a8
commit 9e43ab3dd7

View File

@ -2621,7 +2621,7 @@ seq_search_localized(const char *name, char **array, int *len, Oid collid)
* Fold to upper case, then to lower case, so that we can match reliably
* even in languages in which case conversions are not injective.
*/
upper_name = str_toupper(unconstify(char *, name), strlen(name), collid);
upper_name = str_toupper(name, strlen(name), collid);
lower_name = str_tolower(upper_name, strlen(upper_name), collid);
pfree(upper_name);