[libgda/LIBGDA_4.0] Correctly handle meta store's database of later Libgda versions



commit 52e9af600d3a4df15b650b59e5a55f48bca4c4cc
Author: Vivien Malerba <malerba gnome-db org>
Date:   Wed Jan 13 12:20:44 2010 +0100

    Correctly handle meta store's database of later Libgda versions

 libgda/gda-meta-store.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-meta-store.c b/libgda/gda-meta-store.c
index 0e12d09..d947487 100644
--- a/libgda/gda-meta-store.c
+++ b/libgda/gda-meta-store.c
@@ -1979,11 +1979,11 @@ handle_schema_version (GdaMetaStore *store, gboolean *schema_present, GError **e
 		}
 		store->priv->version = atoi (g_value_get_string (version));
 		
-		if (store->priv->version != 1) {
+		if (store->priv->version < 1) {
 			TO_IMPLEMENT; /* migrate to current version */
 			/* As there is now only version 1 => it's an error */
 			g_set_error (error, GDA_META_STORE_ERROR, GDA_META_STORE_INCORRECT_SCHEMA_ERROR,
-				_ ("Unknown internal schema's version: %d"), g_value_get_int (version));
+				_ ("Unknown internal schema's version: %d"), store->priv->version);
 			g_object_unref (model);
 			return FALSE;
 		}



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