[libgda] If GDA_DATA_MODEL_DUMP_ATTRIBUTES is set, dump column types
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda] If GDA_DATA_MODEL_DUMP_ATTRIBUTES is set, dump column types
- Date: Sun, 29 Nov 2009 15:48:10 +0000 (UTC)
commit 612b8593c527fd40abf394e65ef8575af208cdc6
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Nov 29 16:46:49 2009 +0100
If GDA_DATA_MODEL_DUMP_ATTRIBUTES is set, dump column types
as mentionned in gda_data_model_dump()'s doc.
libgda/gda-data-model.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/libgda/gda-data-model.c b/libgda/gda-data-model.c
index e23df92..ee8cb4c 100644
--- a/libgda/gda-data-model.c
+++ b/libgda/gda-data-model.c
@@ -2001,12 +2001,11 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
GdaColumn *gdacol;
GType coltype;
-#ifdef GDA_DEBUG_NO
- {
+ if (dump_attributes) {
GdaColumn *col = gda_data_model_describe_column (model, i);
- g_print ("Model col %d has type %s\n", i, gda_g_type_to_string (gda_column_get_g_type (col)));
+ g_print ("Model col %d has type %s\n", i,
+ gda_g_type_to_string (gda_column_get_g_type (col)));
}
-#endif
str = (gchar *) gda_data_model_get_column_title (model, i);
if (str)
@@ -2017,7 +2016,6 @@ real_gda_data_model_dump_as_string (GdaDataModel *model, gboolean dump_attribute
if (! dump_attributes) {
gdacol = gda_data_model_describe_column (model, i);
coltype = gda_column_get_g_type (gdacol);
- /*g_string_append_printf (string, "COL %d is a %s\n", i+1, gda_g_type_to_string (coltype));*/
if ((coltype == G_TYPE_INT64) ||
(coltype == G_TYPE_UINT64) ||
(coltype == G_TYPE_INT) ||
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]