mirror of
https://github.com/postgres/postgres.git
synced 2025-08-11 04:22:52 +03:00
@@ -407,7 +407,7 @@ set_locale_and_encoding(void)
|
|||||||
if (GET_MAJOR_VERSION(new_cluster.major_version) >= 1500)
|
if (GET_MAJOR_VERSION(new_cluster.major_version) >= 1500)
|
||||||
PQclear(executeQueryOrDie(conn_new_template1,
|
PQclear(executeQueryOrDie(conn_new_template1,
|
||||||
"UPDATE pg_catalog.pg_database "
|
"UPDATE pg_catalog.pg_database "
|
||||||
" SET encoding = %u, "
|
" SET encoding = %d, "
|
||||||
" datlocprovider = '%c', "
|
" datlocprovider = '%c', "
|
||||||
" datcollate = %s, "
|
" datcollate = %s, "
|
||||||
" datctype = %s, "
|
" datctype = %s, "
|
||||||
@@ -421,7 +421,7 @@ set_locale_and_encoding(void)
|
|||||||
else
|
else
|
||||||
PQclear(executeQueryOrDie(conn_new_template1,
|
PQclear(executeQueryOrDie(conn_new_template1,
|
||||||
"UPDATE pg_catalog.pg_database "
|
"UPDATE pg_catalog.pg_database "
|
||||||
" SET encoding = %u, "
|
" SET encoding = %d, "
|
||||||
" datcollate = %s, "
|
" datcollate = %s, "
|
||||||
" datctype = %s "
|
" datctype = %s "
|
||||||
" WHERE datname = 'template0' ",
|
" WHERE datname = 'template0' ",
|
||||||
|
Reference in New Issue
Block a user