Update of /cvsroot/monetdb/clients/src/mapiclient
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23915
Modified Files:
MapiClient.mx
Log Message:
The new MapiClient can now also work as SQL/MAL debugger on the stable v5.0
Aside from some rendering refinements in the MAL help, it should be
possible to release the new client separately.
Index: MapiClient.mx
===================================================================
RCS file: /cvsroot/monetdb/clients/src/mapiclient/MapiClient.mx,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -d -r1.47 -r1.48
--- MapiClient.mx 15 Aug 2007 15:38:34 -0000 1.47
+++ MapiClient.mx 15 Aug 2007 18:05:10 -0000 1.48
@@ -458,18 +458,24 @@
SQLdebugRendering(MapiHdl hdl)
{
char *reply;
+ int cnt=0;
if (mapi_result_error(hdl) != NULL) {
mapi_explain_result(hdl, stderr);
}
sprintf(promptbuf, "mdb>");
while ((reply = mapi_fetch_line(hdl))) {
+ cnt++;
fprintf(toConsole, "%s\n", reply);
if (strncmp(reply, "mdb>#EOD", 7) == 0) {
- specials = 0;
- sprintf(promptbuf, "%.*s>", (int) sizeof(promptbuf) -
2, language);
+ cnt=0;
+ break;
}
}
+ if(cnt == 0){
+ sprintf(promptbuf, "%.*s>", (int) sizeof(promptbuf) - 2,
language);
+ specials=0;
+ }
}
static void
@@ -1329,7 +1335,7 @@
SQLrenderer(hdl);
}
} else {
- nononsense:
+ nononsense:
if ((reply = mapi_result_error(hdl)) !=
NULL) {
mapi_explain_result(hdl,
stderr);
}
-------------------------------------------------------------------------
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