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

Modified Files:
        xquery_fo.c 
Log Message:
- implement product aggregate as pf support function. This method is not in the
  XQuery standard but is very usefull for us. Only implement the double version
  for this moment but to support all possible signatures analog to the "sum"
  aggregate we only have to copy-and-mopdify this signature list (9 sigs):

pf:product (double*) as double



Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- xquery_fo.c 13 Jul 2007 12:48:26 -0000      1.133
+++ xquery_fo.c 16 Jul 2007 08:32:11 -0000      1.134
@@ -1796,6 +1796,12 @@
             .par_ty = (PFty_t[]) { PFty_node () },
             .ret_ty = PFty_xs_string () } },
         .alg = PFbui_pf_string_value }
+    , /* pf:product (double*) as double */
+      { .ns = PFns_lib, .loc = "product",
+        .arity = 1, .sig_count = 1, .sigs = { {
+            .par_ty = (PFty_t[]) { PFty_star (PFty_xs_double ()) },
+            .ret_ty = PFty_xs_double () } }
+      }
 
 
 /* #2. PATHFINDER SPECIFIC DOCUMENT MANAGEMENT FUNCTIONS */


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