Changeset: c6ac302ba754 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/c6ac302ba754
Modified Files:
clients/mapiclient/mclient.c
Branch: default
Log Message:
Make the internal filter (\|) work on all \d commands.
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
@@ -2615,6 +2615,9 @@ doFile(Mapi mid, stream *fp, bool useins
}
q += snprintf(q, endq - q, "
ORDER BY fullname, type, remark");
+ stream *saveFD;
+ start_pager(&saveFD);
+
hdl = mapi_query(mid, query);
free(query);
CHECK_RESULT(mid, hdl, buf, fp);
@@ -2647,6 +2650,7 @@ doFile(Mapi mid, stream *fp, bool useins
}
mapi_close_handle(hdl);
hdl = NULL;
+ end_pager(saveFD);
}
continue;
}
@@ -2742,8 +2746,7 @@ doFile(Mapi mid, stream *fp, bool useins
continue;
#ifdef HAVE_POPEN
case '|':
- if (pager)
- free(pager);
+ free(pager);
pager = NULL;
setWidth(); /* reset to system
default */
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]