[libgda] Display a warning when the PostgreSQL provider does not identify any data type



commit 5f8513249ea50dab8b0c8cae11c7a06886775fba
Author: Vivien Malerba <malerba gnome-db org>
Date:   Sat Apr 18 21:04:40 2009 +0200

    Display a warning when the PostgreSQL provider does not identify any data type
---
 ChangeLog                                  |    5 +++++
 providers/postgres/gda-postgres-provider.c |    2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f02ecce..be11a59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-18  Vivien Malerba <malerba gnome-db org>
+
+	* providers/postgres/gda-postgres-provider.c: display a warning when
+	the PostgreSQL provider does not identify any data type
+
 2009-04-17  Vivien Malerba <malerba gnome-db org>
 
 	* libgda/sqlite/gda-sqlite.h:
diff --git a/providers/postgres/gda-postgres-provider.c b/providers/postgres/gda-postgres-provider.c
index fcee13d..b4e7aee 100644
--- a/providers/postgres/gda-postgres-provider.c
+++ b/providers/postgres/gda-postgres-provider.c
@@ -519,6 +519,8 @@ get_connection_type_list (PostgresConnectionData *cdata)
 	nrows = PQntuples (pg_res);
 	td = g_new (GdaPostgresTypeOid, nrows);
 	h_table = g_hash_table_new (g_direct_hash, g_direct_equal);
+	if (nrows == 0)
+		g_warning ("PostgreSQL provider did not find any data type (expect some mis-behaviours) please report the error to bugzilla.gnome.org");
 	for (i = 0; i < nrows; i++) {
 		gchar *conv_func_name = NULL;
 		if (PQnfields (pg_res) >= 5)



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