From 8d74bda4238503b314cbafc150954a213e10d888 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Wed, 21 Nov 2012 21:48:06 +0100 Subject: [PATCH] Cleaned the code. --- src/main.c | 11 +++++------ tests/db.db | Bin 2048 -> 2048 bytes 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main.c b/src/main.c index 5faac4e..bb4a096 100644 --- a/src/main.c +++ b/src/main.c @@ -118,7 +118,11 @@ read_fields (GdaConnection *gdacon, Table *table) { field = g_new0 (Field, 1); field->name = gda_value_stringify (gda_data_model_get_value_at (dm_fields, 0, row, NULL)); - g_message ("\t\tField: %s", field->name); + g_message ("\t\tField: %s - %s - %s - %d - %d", field->name, + gda_value_stringify (gda_data_model_get_value_at (dm_fields, 1, row, NULL)), + gda_value_stringify (gda_data_model_get_value_at (dm_fields, 2, row, NULL)), + g_value_get_int (gda_data_model_get_value_at (dm_fields, 3, row, NULL)), + g_value_get_int (gda_data_model_get_value_at (dm_fields, 4, row, NULL))); g_hash_table_insert (table->ht_fields, field->name, field); } @@ -175,7 +179,6 @@ main (int argc, char *argv[]) GOptionContext *context; GHashTable *ht_ref_db_tables; - GHashTable *ht_db_tables; g_type_init (); @@ -229,10 +232,6 @@ main (int argc, char *argv[]) ht_ref_db_tables = g_hash_table_new (g_str_hash, g_str_equal); read_tables (gda_conn_ref_db, ht_ref_db_tables); - g_message ("Reading tables of database (%s).", db_cnc); - ht_db_tables = g_hash_table_new (g_str_hash, g_str_equal); - read_tables (gda_conn_db, ht_db_tables); - g_object_unref (gda_conn_ref_db); g_object_unref (gda_conn_db); diff --git a/tests/db.db b/tests/db.db index 2cb8c26c7f360cf3cf22a212e991a2b5ed61715e..4c2a966fbfe0a63f38d25a0f784942c2d7023ece 100644 GIT binary patch delta 76 zcmZn=Xb_knEy%*az`z8>j6j-YqK+{?3xn<>RbC*E0VvI!yjhUt8I$mO5FZ811xmbU Ip4hMo0AtV#8~^|S literal 2048 zcmWFz^vNtqRY=P(%1ta$FlJz3U}R))P*7lCU|;s5{u -- 2.49.0