Changeset: acd042e6eb1a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/acd042e6eb1a
Modified Files:
        clients/mapiclient/mclient.c
Branch: Sep2022
Log Message:

In raw format, also request typesizes header.


diffs (31 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -2855,8 +2855,10 @@ doFile(Mapi mid, stream *fp, bool useins
                                                        mnstr_printf(toConsole, 
"none\n");
                                                        break;
                                                }
-                                       } else
+                                       } else {
                                                setFormatter(line);
+                                               mapi_set_size_header(mid, 
strcmp(line, "raw") == 0);
+                                       }
                                        continue;
                                case 't':
                                        while (my_isspace(line[length - 1]))
@@ -3567,12 +3569,15 @@ main(int argc, char **argv)
        mapi_trace(mid, trace);
        if (output) {
                setFormatter(output);
+               mapi_set_size_header(mid, strcmp(output, "raw") == 0);
                free(output);
        } else {
                if (mode == SQL) {
                        setFormatter("sql");
+                       mapi_set_size_header(mid, false);
                } else {
                        setFormatter("raw");
+                       mapi_set_size_header(mid, true);
                }
        }
        /* give the user a welcome message with some general info */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to