[libgda] sqlite: fix provider tests



commit 0180202c4394b347d07e242f2e911db29951fa67
Author: Daniel Espinosa Ortiz <esodan gmail com>
Date:   Wed Jan 16 18:27:52 2019 -0600

    sqlite: fix provider tests

 libgda/sqlite/gda-sqlite-meta.c | 8 +++++---
 tests/meta-store/meson.build    | 2 +-
 2 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-meta.c b/libgda/sqlite/gda-sqlite-meta.c
index 56ca38d41..d2567dfaf 100644
--- a/libgda/sqlite/gda-sqlite-meta.c
+++ b/libgda/sqlite/gda-sqlite-meta.c
@@ -767,10 +767,12 @@ fill_tables_views_model (GdaConnection *cnc,
         gint nrows, i;
         GdaStatement *stmt;
         GType col_types[] = {G_TYPE_STRING, G_TYPE_STRING, G_TYPE_NONE};
-        const gchar *schema_name;
+        const gchar *schema_name = TMP_DATABASE_NAME;
+        if (p_table_schema != NULL) {
+          schema_name = g_value_get_string (p_table_schema);
+        }
 
-        schema_name = g_value_get_string (p_table_schema);
-        if (!strcmp (schema_name, TMP_DATABASE_NAME))
+        if (!g_strcmp0 (schema_name, TMP_DATABASE_NAME))
                 return TRUE; /* nothing to do */
 
         str = g_strdup_printf (SELECT_TABLES_VIEWS, schema_name);
diff --git a/tests/meta-store/meson.build b/tests/meta-store/meson.build
index e7961e2d0..b8c6cb2d2 100644
--- a/tests/meta-store/meson.build
+++ b/tests/meta-store/meson.build
@@ -92,7 +92,7 @@ tchkmstsmysql = executable('check_meta_store_mysql',
        install: false
        )
 test('MetaStoreMySQL', tchkmstsmysql,
-       timeout: 200,
+       timeout: 300,
        env: [
                'GDA_TOP_SRC_DIR='+meson.source_root(),
                'GDA_TOP_BUILD_DIR='+meson.build_root()


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