Skip to content

Commit 95a8283

Browse files
committed
Fix incorrect format placeholders
Small fixup for 9637bad.
1 parent 6447097 commit 95a8283

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_upgrade/pg_upgrade.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ set_locale_and_encoding(void)
407407
if (GET_MAJOR_VERSION(new_cluster.major_version) >= 1500)
408408
PQclear(executeQueryOrDie(conn_new_template1,
409409
"UPDATE pg_catalog.pg_database "
410-
" SET encoding = %u, "
410+
" SET encoding = %d, "
411411
" datlocprovider = '%c', "
412412
" datcollate = %s, "
413413
" datctype = %s, "
@@ -421,7 +421,7 @@ set_locale_and_encoding(void)
421421
else
422422
PQclear(executeQueryOrDie(conn_new_template1,
423423
"UPDATE pg_catalog.pg_database "
424-
" SET encoding = %u, "
424+
" SET encoding = %d, "
425425
" datcollate = %s, "
426426
" datctype = %s "
427427
" WHERE datname = 'template0' ",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy