[libgda/LIBGDA_4.0] Display a warning when the PostgreSQL provider does not identify any data type
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgda/LIBGDA_4.0] Display a warning when the PostgreSQL provider does not identify any data type
- Date: Sat, 18 Apr 2009 08:54:29 -0400 (EDT)
commit 6f541af3a10bd44af052a8d0b86fb9bdf04b7452
Author: Vivien Malerba <malerba gnome-db org>
Date: Sat Apr 18 14:38:21 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 ff06383..e28426c 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>
* providers/postgres/gda-postgres-provider.c: fix for bug #578748
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]