Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10794/compiler/mil

Modified Files:
      Tag: XQuery_0-18
        milprint_summer.c 
Log Message:

make sure, we generate proper MIL that Mserver can also handle in 
interactive-/line-mode
(e.g., with `pf ... | Mserver ...`):
"else" must no appear at the beginning of a line.


Index: milprint_summer.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milprint_summer.c,v
retrieving revision 1.387
retrieving revision 1.387.2.1
diff -u -d -r1.387 -r1.387.2.1
--- milprint_summer.c   1 Jun 2007 16:31:29 -0000       1.387
+++ milprint_summer.c   6 Jun 2007 13:36:29 -0000       1.387.2.1
@@ -11482,8 +11482,9 @@
            " ws_destroy(ws);\n"\
            "}}\n"\
           PF_STOP_PFTIJAH\
-           "if (not(isnil(err))) ERROR(err);\n"\
-           "else if (genType.startsWith(\"timing\")) {\n"\
+           "if (not(isnil(err))) {\n"\
+           "  ERROR(err);\n"\
+           "} else if (genType.startsWith(\"timing\")) {\n"\
            "  time_print := usec() - time_print;\n"\
            "  printf(\"\\nTrans  %% 10.3f msec\\nShred  %% 10.3f msec\\nQuery  
%% 10.3f msec\\n" LASTPHASE " %% 10.3f msec\\n\","\
            "      dbl(time_compile)/1000.0, dbl(time_shred)/1000.0, 
dbl(time_exec - time_shred)/1000.0, time_print/1000.0);\n}"


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to