[libgda] Misc corrections



commit abe1ec12fe81377927731a57470d8d67c5f8863b
Author: Vivien Malerba <malerba gnome-db org>
Date:   Mon Dec 14 20:44:34 2009 +0100

    Misc corrections

 libgda/gda-meta-store.c                     |    2 +-
 libgda/thread-wrapper/gda-thread-provider.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 2c5897a..cababb0 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -465,7 +465,7 @@ gda_meta_store_class_init (GdaMetaStoreClass *klass)
 		compute_prepared_stmt (klass->cpriv->parser, 
 				       "INSERT INTO _attributes VALUES (##name::string, ##value::string::null)");
 
-#define GDA_DEBUG_GRAPH
+/*#define GDA_DEBUG_GRAPH*/
 #ifdef GDA_DEBUG_GRAPH
 #define INFORMATION_SCHEMA_GRAPH_FILE "information_schema.dot"
 	GString *string;
diff --git a/libgda/thread-wrapper/gda-thread-provider.c b/libgda/thread-wrapper/gda-thread-provider.c
index 26df50e..2f708be 100644
--- a/libgda/thread-wrapper/gda-thread-provider.c
+++ b/libgda/thread-wrapper/gda-thread-provider.c
@@ -1363,8 +1363,9 @@ static GdaSqlParser *
 sub_thread_create_parser (CncProvData *data, GError **error)
 {
 	/* WARNING: function executed in sub thread! */
-	GdaSqlParser *parser;
-	parser = PROV_CLASS (data->prov)->create_parser (data->prov, data->cnc);
+	GdaSqlParser *parser = NULL;
+	if (PROV_CLASS (data->prov)->create_parser)
+		parser = PROV_CLASS (data->prov)->create_parser (data->prov, data->cnc);
 #ifdef GDA_DEBUG_NO
 	g_print ("/%s() => %p\n", __FUNCTION__, parser);
 #endif



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]