Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv19609/algebra/opt
Modified Files:
opt_algebra_cse.c
Log Message:
-- Fixed indexing bug (i -> j).
U opt_algebra_cse.c
Index: opt_algebra_cse.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_algebra_cse.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- opt_algebra_cse.c 18 Mar 2008 16:20:37 -0000 1.28
+++ opt_algebra_cse.c 26 Mar 2008 11:22:01 -0000 1.29
@@ -139,16 +139,16 @@
/**
* maps original subtrees to their corresponding cse subtrees
*/
-PFarray_t *cse_map;
+static PFarray_t *cse_map;
/**
*maps ori subtrees to their corresponding actual attributes
*/
-PFarray_t *actatt_map;
+static PFarray_t *actatt_map;
/**
* maps cse subtrees to their original subtrees, triggered the
* creation of the cse node
*/
-PFarray_t *ori_map;
+static PFarray_t *ori_map;
/**
* Subexpressions that we already saw.
@@ -1283,7 +1283,7 @@
* if we want to use a column twice */
for (unsigned int j = 0; j < PFarray_last (seen); j++)
if (littbl2->schema.items[i].name ==
- *((PFalg_att_t *)PFarray_at (seen, i)))
+ *((PFalg_att_t *)PFarray_at (seen, j)))
match = true;
if (match) continue;
-------------------------------------------------------------------------
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