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

Modified Files:
      Tag: XQuery_0-24
        prop_ocol.c 
Log Message:
pf:docname implementation


U prop_ocol.c
Index: prop_ocol.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_ocol.c,v
retrieving revision 1.60.2.1
retrieving revision 1.60.2.2
diff -u -d -r1.60.2.1 -r1.60.2.2
--- prop_ocol.c 28 May 2008 11:08:15 -0000      1.60.2.1
+++ prop_ocol.c 12 Jun 2008 12:39:11 -0000      1.60.2.2
@@ -511,6 +511,15 @@
                     res_type = aat_str;
                     break;
 
+                case alg_fun_pf_docname:
+                    assert(n->sem.fun_1to1.refs.count == 1);
+
+                    /* make sure atts are of the correct type */
+                    assert(ocol_at (L(n), ix[0]).type & aat_node);
+
+                    res_type = aat_str;
+                    break;
+
                 case alg_fun_upd_delete:
                     assert(n->sem.fun_1to1.refs.count == 1);
                     /* make sure that the attribute is a node */


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to