Bug #641832: Workaround to avoid the current crashes on windows.

On win32 the queryf() calls below seem to crash. On the other hand,
we know the used libdbi on windows is fine, so as a first
workaround, we assume libdbi is safe.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20287 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2011-02-12 17:30:13 +00:00
parent 7700b974ab
commit b4635710d6

View File

@ -2878,6 +2878,13 @@ conn_test_dbi_library( dbi_conn conn )
gchar doublestr[G_ASCII_DTOSTR_BUF_SIZE];
gboolean retval = TRUE;
#if G_OS_WIN32
/* Bug #641832: On win32 the queryf() calls below seem to
* crash. On the other hand, we know the used libdbi on windows is
* fine, so as a first workaround, we assume libdbi is safe. */
return TRUE;
#endif
result = dbi_conn_query( conn, "CREATE TEMPORARY TABLE numtest "
"( test_int BIGINT, test_unsigned BIGINT,"
" test_double FLOAT8 )" );