Bug 795049 - GnuCash 2.6.20-1 (Fedora Linux package) is unable to open...

MariaDB.
MariaDB (and probably MySQL) doesn't accept two queries in a single
command.
This commit is contained in:
John Ralls 2018-04-10 09:34:06 -07:00
parent cdeee96074
commit b1915a0b89

View File

@ -3326,10 +3326,10 @@ conn_test_dbi_library( dbi_conn conn )
GncDbiTestResult retval = GNC_DBI_PASS;
memset( doublestr, 0, sizeof(doublestr));
result = dbi_conn_query( conn, "DROP TABLE IF EXISTS numtest;"
"CREATE TEMPORARY TABLE numtest "
result = dbi_conn_query (conn, "DROP TABLE IF EXISTS numtest;");
result = dbi_conn_query (con, "CREATE TEMPORARY TABLE numtest "
"( test_int BIGINT, test_unsigned BIGINT,"
" test_double FLOAT8 )" );
" test_double FLOAT8 )");
if ( result == NULL )
{
PWARN("Test_DBI_Library: Create table failed");