Update of /cvsroot/monetdb/pathfinder/runtime
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1638

Modified Files:
      Tag: xquery-decomposition
        rt_projection.mx 
Log Message:
Used wrong BAT




Index: rt_projection.mx
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/Attic/rt_projection.mx,v
retrieving revision 1.1.2.12
retrieving revision 1.1.2.13
diff -u -d -r1.1.2.12 -r1.1.2.13
--- rt_projection.mx    8 Mar 2008 21:17:26 -0000       1.1.2.12
+++ rt_projection.mx    10 Mar 2008 01:55:56 -0000      1.1.2.13
@@ -964,8 +964,9 @@
         return -1;
     }
 
-    if(cp2Container(ws, contID, contIDnew, res_bats[0], res_bats[1],
-                res_bats[2], res_bats[3], res_bats[4]) == GDK_FAIL) {
+    if(cp2Container(ws, contID, contIDnew, res_bats[PPRE_SIZE],
+                res_bats[PPRE_LEVEL], res_bats[PPRE_PROP],
+                res_bats[PPRE_KIND], res_bats[PPRE_NID]) == GDK_FAIL) {
         GDKerror("runtime_doc_projection2stream: cp2Container failed\n");
         for(i = 0; i < 5; i++) BBPreclaim(res_bats[i]);
         GDKfree(ctx->pre); GDKfree(ctx->knd); GDKfree(ctx);
@@ -1003,9 +1004,9 @@
         }
 
         print_item = BATseqbase(print_item, 0);
-        kinds = (unsigned char*) Tloc(res_bats[PPRE_LEVEL], 
BUNfirst(res_bats[PPRE_LEVEL]));
-        for(i = 0; i < BATcount(res_bats[PPRE_LEVEL]); i++){
-            if(kinds[i] == '\004'){
+        kinds = (unsigned char*) Tloc(res_bats[PPRE_KIND], 
BUNfirst(res_bats[PPRE_KIND]));
+        for(i = 0; i < BATcount(res_bats[PPRE_KIND]); i++){
+            if(kinds[i] == '\004'){ /* document node */
                 if(!BUNappend(print_item, (ptr)&i, FALSE)) {
                     GDKerror("runtime_doc_projection: failed to append to 
'print_item' BAT\n");
                     rmContainer(ws, ATTR_PROP, contIDnew);


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to