[libgda] Correction in the meta store update process



commit 5e84efb79fa8a32b7bd238573b12af696f38fc8a
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sun Jun 3 18:01:28 2012 +0200

    Correction in the meta store update process

 libgda/gda-connection.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-connection.c b/libgda/gda-connection.c
index f0a4d1e..d2c195d 100644
--- a/libgda/gda-connection.c
+++ b/libgda/gda-connection.c
@@ -4522,7 +4522,7 @@ local_meta_update (GdaServerProvider *provider, GdaConnection *cnc, GdaMetaConte
 			WARN_META_UPDATE_FAILURE (retval, "collations");
 			return retval;
 		}
-		else if ((tname[1] == 'h') && (tname[1] == 'a')) {
+		else if ((tname[1] == 'h') && (tname[2] == 'a')) {
 			/* _character_sets, params: 
 			 *  -0- @character_set_catalog, @character_set_schema, @character_set_name
 			 *  -1- @character_set_catalog, @character_set_schema
@@ -4546,7 +4546,7 @@ local_meta_update (GdaServerProvider *provider, GdaConnection *cnc, GdaMetaConte
 			WARN_META_UPDATE_FAILURE (retval, "character_sets");
 			return retval;
 		}
-		else if ((tname[1] == 'h') && (tname[1] == 'e')) {
+		else if ((tname[1] == 'h') && (tname[2] == 'e')) {
 			/* _check_column_usage, params: 
 			 *  -0- @table_catalog, @table_schema, @table_name, @constraint_name
 			 *  -1- @table_catalog, @table_schema, @table_name, @column_name



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