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

Modified Files:
        xquery_fo.c 
Log Message:
- Implement 2 new except functions on values:

pxmlsup:val_except (str*, str*) as str*
pxmlsup:val_except (int*, int*) as int*

The standard XQuery op:except() is only defined on the 'node' type. But
remarkably the translateIntersect() used to implement this function works just
as well on value types. Maybe we should in the future implmement these as
pf:except() functions.



Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- xquery_fo.c 16 Jul 2007 08:32:11 -0000      1.134
+++ xquery_fo.c 17 Jul 2007 09:11:36 -0000      1.135
@@ -2206,6 +2206,18 @@
             .ret_ty = PFty_xs_integer () } } }
 #endif
 #ifdef HAVE_PROBXML
+    , /* pxmlsup:val_except (str*, str*) as str* */
+      { .ns = PFns_pxmlsup, .loc = "val_except",
+        .arity = 2, .sig_count = 1, .sigs = { {
+            .par_ty = (PFty_t[]) { PFty_star (PFty_xs_string ()),
+                                PFty_star (PFty_xs_string ()) },
+            .ret_ty = PFty_star (PFty_xs_string ()) } } }
+    , /* pxmlsup:val_except (int*, int*) as int* */
+      { .ns = PFns_pxmlsup, .loc = "val_except",
+        .arity = 2, .sig_count = 1, .sigs = { {
+            .par_ty = (PFty_t[]) { PFty_star (PFty_xs_integer ()),
+                                PFty_star (PFty_xs_integer ()) },
+            .ret_ty = PFty_star (PFty_xs_integer ()) } } }
     , /* pxmlsup:deep-equal (node, node) as boolean */
       { .ns = PFns_pxmlsup, .loc = "deep-equal",
         .arity = 2, .sig_count = 1, .sigs = { {


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