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

Modified Files:
      Tag: XQuery_0-24
        prop_icol.c 
Log Message:
-- Infer the item column information for a stand-alone textnode constructor
   as required (icol) even if its result value is ignored.
 
   This allows us to correctly assign the cardinality at runtime.


U prop_icol.c
Index: prop_icol.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/prop/prop_icol.c,v
retrieving revision 1.37.2.2
retrieving revision 1.37.2.3
diff -u -d -r1.37.2.2 -r1.37.2.3
--- prop_icol.c 5 Jun 2008 09:26:22 -0000       1.37.2.2
+++ prop_icol.c 5 Jun 2008 21:41:17 -0000       1.37.2.3
@@ -649,6 +649,12 @@
             } else if (first_twig_child) {
                 first_twig_child = false;
                 union_ (n->prop->icols, n->sem.iter_item.iter);
+
+                /* special textnode treating as we do not prune
+                   a single (stand-alone) textnode constructor */
+                if (n->kind == la_textnode)
+                    union_ (n->prop->icols, n->sem.iter_item.item);
+
                 prop_infer_icols (L(n), n->prop->icols);
             } else {
                 prop_infer_icols (L(n), NULL);


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