Update of /cvsroot/monetdb/pathfinder/compiler/algebra/prop
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12574/compiler/algebra/prop

Modified Files:
        prop_ocol.c 
Log Message:
Algebra and logical implementation of the following build-in functions:
- fn:name(), fn:name(node?)
- fn:local-name(), fn:locla-name(node?)
- fn:namespace-uri(), fn:namespace-uri(node?)

These functions are 1to1 functions since they all return a string for each
node parameter.


Index: prop_ocol.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_ocol.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- prop_ocol.c 14 Dec 2007 12:16:05 -0000      1.42
+++ prop_ocol.c 8 Jan 2008 16:54:22 -0000       1.43
@@ -418,6 +418,16 @@
                     res_type = aat_str;
                     break;
 
+                case alg_fun_fn_name:
+                case alg_fun_fn_local_name:
+                case alg_fun_fn_namespace_uri:
+                    assert(n->sem.fun_1to1.refs.count == 1);
+                    /* make sure attribute is of type node */
+                    assert (ocol_at (L(n), ix[0]).type & aat_node);
+
+                    res_type = aat_str;
+                    break;
+
                 case alg_fun_fn_number:
                     assert (n->sem.fun_1to1.refs.count == 1);
                     res_type = aat_dbl;


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to