Changeset: 30ca6aa462ac for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=30ca6aa462ac
Modified Files:
        clients/mapilib/mapi.c
        sql/backends/monet5/sql_result.c
Branch: default
Log Message:

Only send a single result to the client but with two times.


diffs (25 lines):

diff --git a/clients/mapilib/mapi.c b/clients/mapilib/mapi.c
--- a/clients/mapilib/mapi.c
+++ b/clients/mapilib/mapi.c
@@ -3767,6 +3767,7 @@ parse_header_line(MapiHdl hdl, char *lin
                switch (qt) {
                case Q_SCHEMA:
                        result->querytime = strtoll(nline, &nline, 10);
+                       result->maloptimizertime = strtoll(nline, &nline, 10);
                        break;
                case Q_TRANS:
                        if (*nline == 'f')
diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -2087,9 +2087,7 @@ mvc_export_operation(backend *b, stream 
 
        assert(m->type == Q_SCHEMA || m->type == Q_TRANS);
        if (m->type == Q_SCHEMA) {
-               if (!s || mnstr_printf(s, "&3 " LLFMT "\n", starttime > 0 ? 
GDKusec() - starttime : 0) < 0)
-                       return -1;
-               if (!s || mnstr_printf(s, "&3 " LLFMT "\n", mal_optimizer) < 0)
+               if (!s || mnstr_printf(s, "&3 " LLFMT " " LLFMT "\n", starttime 
> 0 ? GDKusec() - starttime : 0, mal_optimizer) < 0)
                        return -1;
        } else {
                if (m->session->auto_commit) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to