Changeset: b0d5065454b2 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b0d5065454b2 Modified Files: clients/src/mapiclient/mclient.mx Branch: Jun2010 Log Message:
When echoing the query, add a newline if query doesn't end in one. diffs (22 lines): diff -r d1d2506ebbcf -r b0d5065454b2 clients/src/mapiclient/mclient.mx --- a/clients/src/mapiclient/mclient.mx Fri Sep 17 13:00:32 2010 +0200 +++ b/clients/src/mapiclient/mclient.mx Fri Sep 17 15:39:08 2010 +0200 @@ -672,8 +672,18 @@ stream_printf(toConsole, "#%s\n", p); p = q; } + if (*p) { + /* query does not end in \n */ + stream_printf(toConsole, "#%s\n", p); + } } else { + size_t qrylen = strlen(qry); + stream_printf(toConsole, "%s", qry); + if (qrylen > 0 && qry[qrylen - 1] != '\n') { + /* query does not end in \n */ + stream_printf(toConsole, "\n"); + } } free(qry); } _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list