r20287 - gnucash/trunk/src/backend/dbi - Bug #641832: Workaround to avoid the current crashes on windows.

Christian Stimming cstim at code.gnucash.org
Sat Feb 12 12:30:13 EST 2011


Author: cstim
Date: 2011-02-12 12:30:13 -0500 (Sat, 12 Feb 2011)
New Revision: 20287
Trac: http://svn.gnucash.org/trac/changeset/20287

Modified:
   gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c
Log:
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.

Modified: gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c
===================================================================
--- gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c	2011-02-12 17:05:06 UTC (rev 20286)
+++ gnucash/trunk/src/backend/dbi/gnc-backend-dbi.c	2011-02-12 17:30:13 UTC (rev 20287)
@@ -2878,6 +2878,13 @@
     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 )" );



More information about the gnucash-changes mailing list