postgres.git / summary / log / commit / refs

commit    a9bc04b21182cb6030e248a4055dc793e901ef6d
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Fri Mar 24 06:18:12 2023 +0000

    Fix incorrect format placeholders
    
    The fields of NLSVERSIONINFOEX are of type DWORD, which is unsigned
    long, so the results of the computations being printed are also of
    type unsigned long.


src/backend/utils/adt/pg_locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/pg_locale.c b/src/backend/utils/adt/pg_locale.c index 42b6ad45cb8..6d06c394f0f 100644 --- a/src/backend/utils/adt/pg_locale.c +++ b/src/backend/utils/adt/pg_locale.c @@ -1778,7 +1778,7 @@ get_collation_actual_version(char collprovider, const char *collcollate) collcollate, GetLastError()))); } - collversion = psprintf("%ld.%ld,%ld.%ld", + collversion = psprintf("%lu.%lu,%lu.%lu", (version.dwNLSVersion >> 8) & 0xFFFF, version.dwNLSVersion & 0xFF, (version.dwDefinedVersion >> 8) & 0xFFFF, [parent: 069ef254f145]