Changeset: 05bfd22261fc for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=05bfd22261fc
Modified Files:
        clients/mapiclient/tachograph.c
Branch: default
Log Message:

Rendering queries for JSON


diffs (21 lines):

diff --git a/clients/mapiclient/tachograph.c b/clients/mapiclient/tachograph.c
--- a/clients/mapiclient/tachograph.c
+++ b/clients/mapiclient/tachograph.c
@@ -545,7 +545,7 @@ progressBarInit(char *qry)
        fprintf(tachojson," 
\"qid\":\"%s\",\n",currentfunction?currentfunction:"");
        fprintf(tachojson," \"tag\":%d,\n",currenttag);
 
-       fprintf(tachojson," \"query\":\"%s\",\n",qry);
+       fprintf(tachojson," \"query\":\"");
        for(s = qry; *s; s++)
        switch(*s){
        case '\n': fputs("\\n", tachojson); break;
@@ -554,7 +554,7 @@ progressBarInit(char *qry)
        case '\b': fputs("\\b", tachojson); break;
        default: fputc((int) *s, tachojson);
        }
-       fprintf(tachojson,"\",\n",qry);
+       fprintf(tachojson,"\",\n");
 
        fprintf(tachojson," \"started\": "LLFMT",\n",starttime);
        fprintf(tachojson," \"duration\":"LLFMT",\n",duration);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to