summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-03-17 06:35:43 +0000
committerPeter Eisentraut2023-03-17 06:48:24 +0000
commit95a828378ed243a1b37cab6bda99746bfc0af509 (patch)
tree1031af11e24a5b988bd1205f5b9de60feac48bc3
parent64470973b12ae0fa45f7c364579305279bb58b93 (diff)
Fix incorrect format placeholders
Small fixup for 9637badd9f.
-rw-r--r--src/bin/pg_upgrade/pg_upgrade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_upgrade/pg_upgrade.c b/src/bin/pg_upgrade/pg_upgrade.c
index 4fca466ace..75bab0a04c 100644
--- a/src/bin/pg_upgrade/pg_upgrade.c
+++ b/src/bin/pg_upgrade/pg_upgrade.c
@@ -407,7 +407,7 @@ set_locale_and_encoding(void)
if (GET_MAJOR_VERSION(new_cluster.major_version) >= 1500)
PQclear(executeQueryOrDie(conn_new_template1,
"UPDATE pg_catalog.pg_database "
- " SET encoding = %u, "
+ " SET encoding = %d, "
" datlocprovider = '%c', "
" datcollate = %s, "
" datctype = %s, "
@@ -421,7 +421,7 @@ set_locale_and_encoding(void)
else
PQclear(executeQueryOrDie(conn_new_template1,
"UPDATE pg_catalog.pg_database "
- " SET encoding = %u, "
+ " SET encoding = %d, "
" datcollate = %s, "
" datctype = %s "
" WHERE datname = 'template0' ",