Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory sc8-pr-cvs16:/tmp/cvs-serv12638/compiler/mil

Modified Files:
        milprint_summer.c 
Log Message:
Implemeted "do replace x with y" as a single update command instead of as a 
combination of insert (had to be done first) and delete.
This has the advantage that we can reuse the space that becomes available for 
the new element.

Index: milprint_summer.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milprint_summer.c,v
retrieving revision 1.366
retrieving revision 1.367
diff -u -d -r1.366 -r1.367
--- milprint_summer.c   27 Apr 2007 13:36:08 -0000      1.366
+++ milprint_summer.c   27 Apr 2007 18:22:40 -0000      1.367
@@ -7855,6 +7855,7 @@
              PFqname_eq(fnQname, PFqname (PFns_upd,"insertBefore")) == 0 ||
              PFqname_eq(fnQname, PFqname (PFns_upd,"insertAfter")) == 0 ||
              PFqname_eq(fnQname, PFqname (PFns_upd,"replaceValue")) == 0 ||
+             PFqname_eq(fnQname, PFqname (PFns_upd,"replaceNode")) == 0 ||
              PFqname_eq(fnQname, PFqname (PFns_upd,"replaceElementContent")) 
== 0 ||
              PFqname_eq(fnQname, PFqname (PFns_upd,"rename")) == 0)
     {
@@ -7869,6 +7870,8 @@
             update_cmd = "UPDATE_INSERT_BEFORE";
         else if (strcmp(func, "insertAfter") == 0)
             update_cmd = "UPDATE_INSERT_AFTER";
+        else if (strcmp(func, "replaceNode") == 0)
+            update_cmd = "UPDATE_REPLACENODE";
         else if (strcmp(func, "replaceValue") == 0) {
             update_cmd = "UPDATE_REPLACE";
             arg = "str";


-------------------------------------------------------------------------
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