From 532a99eec2b4f646b6f1922eaca8e9b21c7e043a Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 24 Nov 2012 16:18:10 +0100 Subject: [PATCH] Added command line parameter "verbose". --- .anjuta_sym_db.db | Bin 34816 -> 34816 bytes src/main.c | 34 +++++++++++++++++++++------------- tests/db.db | Bin 3072 -> 3072 bytes 3 files changed, 21 insertions(+), 13 deletions(-) diff --git a/.anjuta_sym_db.db b/.anjuta_sym_db.db index af0bfb0557b546719180d958543658a4307f8e2d..effcc23daef2206d986361fc12ba827379bbbb4f 100644 GIT binary patch delta 646 zcmZ8fL1+^}6x~0w(_~H3Otop%bd#8fU{c#`HW*L@MJNiv3M!(AanqfaK$@+)X-Fz! zf?^Rb33Kb+t9A_p#EW7!c$HQtpKWIRS!fGs7$_mRQ+zq<0)?cOl8|YqwyAztzsb zEdM6f2LG#Fhd7_hoQFJrnz=ZVtyv`#ak_q-f6s(LWYY1VVPA8r)t?O z>kE(*0w3zMBYrX|qT7R0W|d)T*r6Hk7&#?U&f{`%wNy5lJ?+`^uLG-8?GkfhYHd_?1+U@7aWlUj*d+JdHJ8tU>L?a_%MOF9PargmgH@NnP zV2WMtX+{xtyJPYzOl0f@%6rdmoTg|)Lch@_+CrbP56@!*ui;DhH9m_!;Wual|HNBv T%SIC+d2q|2|3SN(FK@y>$-cEl delta 525 zcmY*V&ubG=5Z-w&&&`^on`&dNNnF!_)U=`5U9qSLf>5*vEvSfsuAAGRp}GTl>?poSMg!RNJ{_eQKwzduBFnFQY6ad48-$A0Em0s zcC6(ZcO74Pjzqr%Q+P!`4>R~eKL};~AbJyj>1QC1^TrWaz`Mrr9mdT@%^{fH*oz;H zEX?ATQ6ky^!;LXC%+vVFoIo@SBsaj`oeaJ=_d^N4nER+ozN36t>$TqzV>c@*1pYIS zqTlG2L|+Trf4wJIMggeXD|`wk=cey9)osGSuDaZZ{79Nv$7!8 zRt4hL3J+{QXn5R6q}YVuhq~FFNj5Ifg+Euy%5XG%#!P&a6~xGIy4AIs>u|3mkFcx) zCh&UT)wr**T_OO$4ac^Y8uhy6RP(VtYdefault_value = g_strdup (mt_column->default_value); table->fields = g_slist_append (table->fields, column); - g_message ("\t\tField: %s - %s - %d - %d - %d - %s", - column->column_name, - column->column_type, - column->gtype, - column->pkey, - column->nullok, - column->default_value); + if (verbose) + { + g_message ("\t\tField: %s - %s - %d - %d - %d - %s", + column->column_name, + column->column_type, + column->gtype, + column->pkey, + column->nullok, + column->default_value); + } /* sql builder */ column_name = g_strdup_printf ("p_%s", column->column_name); @@ -347,12 +352,15 @@ read_tables () continue; } - error = NULL; - stmt = gda_sql_builder_get_statement (table->sqlbuilder, &error); - error = NULL; - g_message ("\t\tSql: %s", - gda_statement_to_sql (stmt, NULL, &error)); - g_object_unref (stmt); + if (verbose) + { + error = NULL; + stmt = gda_sql_builder_get_statement (table->sqlbuilder, &error); + error = NULL; + g_message ("\t\tSql: %s", + gda_statement_to_sql (stmt, NULL, &error)); + g_object_unref (stmt); + } g_object_unref (op); diff --git a/tests/db.db b/tests/db.db index 2c0d58c323e98ad11a79021502c21e74677b5961..e3b54eb3c180e34cd25608bfe46e4367fcd3c44c 100644 GIT binary patch delta 60 zcmZpWXpop7EqH)|fq@x_nV@*rL>*(Gpzb3zUZ4mA3sB|*(}#_PO-xLT0uu|nHrFvX GaR2~Ziw#@= delta 60 zcmZpWXpop7Ex3h&fq@x_nV@*nL>*(Gpzb3zUZ4mA3sAP2>BDA0mS!f#?umt6o9mdH FH~>x;4Cnv= -- 2.49.0