Changeset: 8e6b6b94b838 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8e6b6b94b838
Modified Files:
        clients/mapiclient/mclient.c
Branch: Mar2018
Log Message:

mclient: avoid skipping resultsets twice with (new) "trash" output format


diffs (19 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -1837,7 +1837,6 @@ format_result(Mapi mid, MapiHdl hdl, cha
                            formatter == TESTformatter)
                                mnstr_printf(toConsole, "[ %" PRId64 "\t]\n", 
mapi_rows_affected(hdl));
                        else if (formatter == TRASHformatter) {
-                               mapi_next_result(hdl);
                                printf("%s\n", timerHuman(sqloptimizer, 
maloptimizer, querytime));
                        } else {
                                aff = mapi_rows_affected(hdl);
@@ -1867,7 +1866,6 @@ format_result(Mapi mid, MapiHdl hdl, cha
                                                     timerHuman(sqloptimizer, 
maloptimizer, querytime));
                                mnstr_printf(toConsole, "\n");
                        } else if (formatter == TRASHformatter) {
-                               mapi_next_result(hdl);
                                printf("%s\n", timerHuman(sqloptimizer, 
maloptimizer, querytime));
                        }
                        continue;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to