Update of /cvsroot/monetdb/MonetDB5/src/optimizer
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23864

Modified Files:
        opt_recycler.mx 
Log Message:
After a change of a function id, we should type check
all dependent statements as well.


Index: opt_recycler.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/optimizer/opt_recycler.mx,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- opt_recycler.mx     14 Mar 2008 07:30:56 -0000      1.7
+++ opt_recycler.mx     14 Mar 2008 07:45:04 -0000      1.8
@@ -125,11 +125,12 @@
 @c
                /* take care of semantic driven recyling */
                if( p->recycle &&
-                       getFunctionId(p)== selectRef &&
+                       getFunctionId(p)== uselectRef &&
                        !ATOMvarsized( getGDKType( getArgType(mb,p,1)))
                ){
                        setFunctionId(p, selectRef);
-                       typeChecker(MCgetClient()->nspace,mb,p,TRUE);
+                       /* this requires a complete type check again */
+                       clrAllTypes(mb);
                }
        }
        if( actions)
@@ -143,4 +144,4 @@
 #endif
 @c
 #include "opt_statistics.h"
-@:wrapOptimizer(recycle,OPT_CHECK_ALL)@
+@:wrapOptimizer(recycle,OPT_CHECK_TYPES)@


-------------------------------------------------------------------------
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-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins

Reply via email to