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

Modified Files:
        xquery_fo.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: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -u -d -r1.120 -r1.121
--- xquery_fo.c 27 Apr 2007 13:36:09 -0000      1.120
+++ xquery_fo.c 27 Apr 2007 18:22:41 -0000      1.121
@@ -1923,6 +1923,12 @@
             .par_ty = (PFty_t []) { PFty_xs_anyElement (),
                                     PFty_opt (PFty_text ()) },
             .ret_ty = PFty_stmt () } } }
+    , /* upd:replaceNode (node, node) as stmt */
+      { .ns = PFns_upd, .loc = "replaceNode",
+        .arity = 2, .sig_count = 1, .sigs = { {
+            .par_ty = (PFty_t []) { PFty_node (),
+                                    PFty_star (PFty_node ()) },
+            .ret_ty = PFty_stmt () } } }
 
 
 #ifdef HAVE_PFTIJAH


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