From 2f73630a38d1720f39f1772c47a0394f37fcf4f3 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Fri, 22 Nov 2013 19:31:50 +0100 Subject: [PATCH] Fix DB connection call * "sqlite" is changed to NULL, so theoretically it is now possible to use any SQL backend GDA supports * GDA_CONNECTION_OPTIONS_THREAD_SAFE is added as a connection option, just for safety --- wmud/db.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmud/db.c b/wmud/db.c index cf6ede6..807e2c9 100644 --- a/wmud/db.c +++ b/wmud/db.c @@ -62,7 +62,7 @@ wmud_db_init(GError **err) gda_init(); /* TODO: error checking! */ - dbh = gda_connection_open_from_string("sqlite", active_config->database_dsn, NULL, 0, &local_err); + dbh = gda_connection_open_from_string(NULL, active_config->database_dsn, NULL, GDA_CONNECTION_OPTIONS_THREAD_SAFE, &local_err); if (dbh == NULL) { g_set_error(err, WMUD_DB_ERROR, WMUD_DB_ERROR_CANTOPEN, "Can not open databsae (%s): %s", active_config->database_dsn, local_err->message);