[libgda/LIBGDA_4.2] Corrected providers test
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.2] Corrected providers test
- Date: Wed, 14 Dec 2011 17:01:05 +0000 (UTC)
commit 97e227b46bb06ea4005a3da46403ed48b7c4b8fe
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Nov 23 21:38:59 2011 +0100
Corrected providers test
tests/providers/prov-test-common.c | 1 +
tests/providers/prov-test-util.c | 21 +++++++++++++++++++++
2 files changed, 22 insertions(+), 0 deletions(-)
---
diff --git a/tests/providers/prov-test-common.c b/tests/providers/prov-test-common.c
index 2553c65..21be837 100644
--- a/tests/providers/prov-test-common.c
+++ b/tests/providers/prov-test-common.c
@@ -612,6 +612,7 @@ prov_test_common_check_data_select ()
columns = g_slist_append (columns, gda_data_model_describe_column (model, i));
/* change param */
+ g_object_set (model, "auto-reset", TRUE, NULL);
if (! gda_set_set_holder_value (params, &error, "theid", 9)) {
number_failed++;
goto out;
diff --git a/tests/providers/prov-test-util.c b/tests/providers/prov-test-util.c
index 310583a..b294b24 100644
--- a/tests/providers/prov-test-util.c
+++ b/tests/providers/prov-test-util.c
@@ -153,6 +153,27 @@ prov_test_check_types_schema (GdaConnection *cnc)
GdaDataModel *schema_m;
GError *error = NULL;
gchar *str;
+ GdaMetaContext mcontext = {"_builtin_data_types", 0, NULL, NULL};
+ g_print ("updating [%s]\n", mcontext.table_name);
+ if (! gda_connection_update_meta_store (cnc, &mcontext, &error)) {
+ g_warning ("Can't update meta store: %s\n",
+ error && error->message ? error->message : "???");
+ return FALSE;
+ }
+ mcontext.table_name="_udt";
+ g_print ("updating [%s]\n", mcontext.table_name);
+ if (! gda_connection_update_meta_store (cnc, &mcontext, &error)) {
+ g_warning ("Can't update meta store: %s\n",
+ error && error->message ? error->message : "???");
+ return FALSE;
+ }
+ mcontext.table_name="_domains";
+ g_print ("updating [%s]\n", mcontext.table_name);
+ if (! gda_connection_update_meta_store (cnc, &mcontext, &error)) {
+ g_warning ("Can't update meta store: %s\n",
+ error && error->message ? error->message : "???");
+ return FALSE;
+ }
prov = gda_connection_get_provider (cnc);
schema_m = gda_connection_get_meta_store_data (cnc, GDA_CONNECTION_META_TYPES, &error, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]