Update of /cvsroot/monetdb/clients/src/mapiclient
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11469/src/mapiclient
Modified Files:
MapiClient.mx
Log Message:
Break the mode change before you render the results
Index: MapiClient.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapiclient/MapiClient.mx,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- MapiClient.mx 16 Aug 2007 07:22:08 -0000 1.49
+++ MapiClient.mx 16 Aug 2007 07:26:02 -0000 1.50
@@ -1363,17 +1363,19 @@
while ((reply = mapi_fetch_line(hdl))
!= NULL && *reply) {
if ((mode == XQUERY || mode ==
MAL) && *reply == '=')
reply++;
+ /* we know when the MAL
debugger becomes active and finishes*/
+ if (strncmp(reply, "mdb>#", 5)
== 0)
+
sprintf(promptbuf,"mdb>");
+ if (strncmp(reply, "mdb>#EOD",
7) == 0){
+ setPrompt();
+ continue;
+ }
#ifdef HAVE_POPEN
if (pagerFD)
fprintf(pagerFD,
"%s\n", reply);
else
#endif
fprintf(toConsole,
"%s\n", reply);
- /* we know when the MAL
debugger becomes active and finishes*/
- if (strncmp(reply, "mdb>#", 5)
== 0)
-
sprintf(promptbuf,"mdb>");
- if (strncmp(reply, "mdb>#EOD",
7) == 0)
- setPrompt();
}
}
} while ((rc = mapi_needmore(hdl)) == MOK && (rc =
mapi_next_result(hdl)) == 1);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins