Update of /cvsroot/monetdb/pathfinder/compiler/mil
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15341/mil
Modified Files:
milprint_summer.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: milprint_summer.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/mil/milprint_summer.c,v
retrieving revision 1.396
retrieving revision 1.397
diff -u -d -r1.396 -r1.397
--- milprint_summer.c 16 Jul 2007 13:04:20 -0000 1.396
+++ milprint_summer.c 17 Jul 2007 09:11:34 -0000 1.397
@@ -8635,6 +8635,11 @@
#endif /* PFTIJAH */
#ifdef HAVE_PROBXML
+ else if (!PFqname_eq(fnQname,PFqname (PFns_pxmlsup,"val_except")))
+ {
+ translateIntersect (f, "diff", cur_level, counter, args);
+ return NORMAL;
+ }
else if (!PFqname_eq(fnQname,PFqname (PFns_pxmlsup,"deep-equal")))
{
return translateDeepEq (f, cur_level, counter, "deep-equal", args);
-------------------------------------------------------------------------
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