Bug #609581 - Gnucash 2.3.8 offers to create db and then fails to do so

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19824 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Geert Janssens 2010-11-17 21:38:28 +00:00
parent fb53d8a463
commit 5b180dec10

View File

@ -976,7 +976,7 @@ gnc_dbi_postgres_session_begin( QofBackend *qbe, QofSession *session,
qof_backend_set_error( qbe, ERR_BACKEND_SERVER_ERR );
goto exit;
}
dresult = dbi_conn_queryf( be->conn, "CREATE DATABASE %s WITH ENCODING 'UTF8'", dbnamelc );
dresult = dbi_conn_queryf( be->conn, "CREATE DATABASE %s WITH TEMPLATE template0 ENCODING 'UTF8'", dbnamelc );
if ( dresult == NULL )
{
PERR( "Unable to create database '%s'\n", dbname );