git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6447097)
Fix incorrect format placeholders
2023年3月17日 06:35:43 +0000 (07:35 +0100)
2023年3月17日 06:48:24 +0000 (07:48 +0100)
Small fixup for 9637badd9f.


diff --git a/src/bin/pg_upgrade/pg_upgrade.c b/src/bin/pg_upgrade/pg_upgrade.c
index 4fca466ace0f65a93cff561ddf31dbb4776fa646..75bab0a04cfaa774144ec00e7847b25afe1068e4 100644 (file)
--- 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' ",
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /