Update of /cvsroot/monetdb/pathfinder/compiler/semantics
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29250/compiler/semantics
Modified Files:
xquery_fo.c
Log Message:
Added function pf:pow (calculates power function; not in XQuery functions and
operators)
Index: xquery_fo.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/semantics/xquery_fo.c,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- xquery_fo.c 24 May 2007 09:59:09 -0000 1.127
+++ xquery_fo.c 24 May 2007 11:37:06 -0000 1.128
@@ -1940,6 +1940,30 @@
.arity = 1, .sig_count = 1, .sigs = { {
.par_ty = (PFty_t[]) { PFty_opt (PFty_xs_double ()) },
.ret_ty = PFty_opt (PFty_xs_double ()) } } }
+ , /* pf:pow (decimal, decimal) as decimal */
+ { .ns = PFns_lib, .loc = "pow",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_xs_decimal (),
+ PFty_xs_decimal () },
+ .ret_ty = PFty_xs_decimal () } } }
+ , /* pf:pow (decimal?, decimal?) as decimal? */
+ { .ns = PFns_lib, .loc = "pow",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_opt (PFty_xs_decimal ()),
+ PFty_opt (PFty_xs_decimal ()) },
+ .ret_ty = PFty_opt (PFty_xs_decimal ()) } } }
+ , /* pf:pow (double, double) as double */
+ { .ns = PFns_lib, .loc = "pow",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_xs_double (),
+ PFty_xs_double () },
+ .ret_ty = PFty_xs_double () } } }
+ , /* pf:pow (double?, double?) as double? */
+ { .ns = PFns_lib, .loc = "pow",
+ .arity = 2, .sig_count = 1, .sigs = { {
+ .par_ty = (PFty_t[]) { PFty_opt (PFty_xs_double ()),
+ PFty_opt (PFty_xs_double ()) },
+ .ret_ty = PFty_opt (PFty_xs_double ()) } } }
/* #3. UPDATE 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