Changeset: 956d69a43d19 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=956d69a43d19
Modified Files:
        sql/backends/monet5/sql_wlcr.c
Branch: wlcr
Log Message:

Delay conversion


diffs (38 lines):

diff --git a/sql/backends/monet5/sql_wlcr.c b/sql/backends/monet5/sql_wlcr.c
--- a/sql/backends/monet5/sql_wlcr.c
+++ b/sql/backends/monet5/sql_wlcr.c
@@ -374,23 +374,23 @@ WLRquery(Client cntxt, MalBlkPtr mb, Mal
        lng clk = GDKms();
        char *x, *y, *qtxt;
 
-       // we need to get rid of the escaped quote.
-       x = qtxt= (char*) GDKmalloc(strlen(qry) +1);
-       for(y = qry; *y; y++){
-               if( *y == '\\' ){
-                       if( *(y+1) ==  '\'')
-                       y += 1;
-               }
-               *x++ = *y;
-       }
-       *x = 0;
        (void) mb;
        // execute the query in replay mode
        if( cntxt->wlcr_kind == WLCR_CATALOG || cntxt->wlcr_kind == WLCR_QUERY 
){
+               // we need to get rid of the escaped quote.
+               x = qtxt= (char*) GDKmalloc(strlen(qry) +1);
+               for(y = qry; *y; y++){
+                       if( *y == '\\' ){
+                               if( *(y+1) ==  '\'')
+                               y += 1;
+                       }
+                       *x++ = *y;
+               }
+               *x = 0;
                msg =  SQLstatementIntern(cntxt, &qtxt, "SQLstatement", TRUE, 
TRUE, NULL);
                mnstr_printf(cntxt->fdout,"# "LLFMT"ms\n",GDKms() - clk);
+               GDKfree(qtxt);
        }
-       GDKfree(qtxt);
        return msg;
 }
 
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to