[libgda/LIBGDA_4.0] Gda-SQL: bug fixed in the computed dictionary name
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgda/LIBGDA_4.0] Gda-SQL: bug fixed in the computed dictionary name
- Date: Fri, 5 Jun 2009 16:26:40 -0400 (EDT)
commit b8328cab490bfb8913c2fed33916efa47b19e42b
Author: Vivien Malerba <malerba gnome-db org>
Date: Fri Jun 5 22:24:17 2009 +0200
Gda-SQL: bug fixed in the computed dictionary name
the computed dictionary name (which stores all the meta data and some
of gda-sql data) is now determined from the connection string reported by
the GdaConnection (if it's not a DSN).
---
tools/gda-sql.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/tools/gda-sql.c b/tools/gda-sql.c
index ba80235..698191e 100644
--- a/tools/gda-sql.c
+++ b/tools/gda-sql.c
@@ -1361,6 +1361,13 @@ open_connection (SqlConsole *console, const gchar *cnc_name, const gchar *cnc_st
g_free (real_auth_string);
if (newcnc) {
+ gchar *dict_file_name = NULL;
+ gchar *cnc_string;
+ g_object_get (G_OBJECT (newcnc),
+ "cnc-string", &cnc_string, NULL);
+ dict_file_name = compute_dict_file_name (info, cnc_string);
+ g_free (cnc_string);
+
cs = g_new0 (ConnectionSetting, 1);
if (cnc_name && *cnc_name)
cs->name = g_strdup (cnc_name);
@@ -1453,6 +1460,7 @@ open_connection (SqlConsole *console, const gchar *cnc_name, const gchar *cnc_st
}
if (store)
g_object_unref (store);
+ g_free (dict_file_name);
}
return cs;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]