Update of /cvsroot/monetdb/pathfinder/compiler/algebra/opt
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv8344

Modified Files:
        opt_projection.c 
Log Message:
fixed problem with la_type


U opt_projection.c
Index: opt_projection.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/opt/opt_projection.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- opt_projection.c    1 Apr 2009 11:43:12 -0000       1.5
+++ opt_projection.c    1 Apr 2009 15:30:39 -0000       1.6
@@ -677,7 +677,7 @@
                             re_rename_col (p->sem.type.col, 
                                             L(p)->sem.proj.items,
                                             L(p)->schema.count),
-                            L(p)->sem.type.ty),
+                            p->sem.type.ty),
                         (count+1),
                         proj);
                 break;  
@@ -781,34 +781,6 @@
                         L(p)->schema.count,
                         L(p)->sem.proj.items);
                 break;
-
-            /* swap projection and current operatior p
-             *
-             *      |                    |
-             *  attribute (p)         project
-             *      |          -->       |
-             *   project             attribute (p)
-             *      |                    |
-             * 
-             * if the projection renames columns, the columns have to 
-             * be re-renamed before swaping the projection and the
-             * operator p
-             */  
-            case la_attribute:
-                /* swap projection and current operatior */
-        /*        *p = *PFla_project_ (
-                        PFla_attribute (
-                            LL(p), 
-                            p->sem.iter_item1_item2.iter, 
-                            re_rename_col (p->sem.iter_item1_item2.item1, 
-                                            L(p)->sem.proj.items,
-                                            L(p)->schema.count),
-                            re_rename_col (p->sem.iter_item1_item2.item2, 
-                                            L(p)->sem.proj.items,
-                                            L(p)->schema.count)),
-                        L(p)->schema.count,
-                        L(p)->sem.proj.items); */
-                break;
                 
             /* pass the projection rigth thru and duplicate operator 
              * swap projection and current operatior p


------------------------------------------------------------------------------
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins

Reply via email to