Skip to content

Commit 88110ca

Browse files
committed
Explicitly set UTF8 server encoding for temporary pgsql test database
1 parent 80e1815 commit 88110ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_database.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ test_database::test_database() {
7474
pqxx::connection conn("dbname=postgres");
7575
pqxx::nontransaction w(conn);
7676

77-
w.exec(fmt::format("CREATE DATABASE {}", db_name));
77+
w.exec(fmt::format("CREATE DATABASE {} ENCODING 'UTF8'", db_name));
7878
w.commit();
7979
m_db_name = db_name;
8080

0 commit comments

Comments
 (0)