aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2024-08-19 21:21:03 +1200
committerThomas Munro <tmunro@postgresql.org>2024-08-19 22:21:24 +1200
commit283964ee4dd1b447e3f7a847802ef183f7ac5e74 (patch)
treef9156fcd3f7c7807e3530ba7aa021e0ffbdfb614 /src
parent1553c84960b0fce23f1ea51b7b5f9362af61f253 (diff)
downloadpostgresql-283964ee4dd1b447e3f7a847802ef183f7ac5e74.tar.gz
postgresql-283964ee4dd1b447e3f7a847802ef183f7ac5e74.zip
Fix harmless LC_COLLATE[_MASK] confusion.
Commit ca051d8b101 called newlocale(LC_COLLATE, ...) instead of newlocale(LC_COLLATE_MASK, ...), in code reached only on FreeBSD. They have the same value on that OS, explaining why it worked. Fix. Back-patch to 14, where ca051d8b101 landed.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/adt/pg_locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c
index 99a21f20b9f..cc28409956c 100644
--- a/src/backend/utils/adt/pg_locale.c
+++ b/src/backend/utils/adt/pg_locale.c
@@ -1683,7 +1683,7 @@ get_collation_actual_version(char collprovider, const char *collcollate)
locale_t loc;
/* Look up FreeBSD collation version. */
- loc = newlocale(LC_COLLATE, collcollate, NULL);
+ loc = newlocale(LC_COLLATE_MASK, collcollate, NULL);
if (loc)
{
collversion =