Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13679/src/backends/monet5

Modified Files:
      Tag: Nov2009
        sql_gencode.mx 
Log Message:
fixed bug in checking for sideeffects.
small code cleanup in sql_psm (ie we still incorrectly used the old updates
route instead of rel_updates for copy into within psm).


Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.336.2.3
retrieving revision 1.336.2.4
diff -u -d -r1.336.2.3 -r1.336.2.4
--- sql_gencode.mx      8 Nov 2009 14:36:34 -0000       1.336.2.3
+++ sql_gencode.mx      11 Nov 2009 08:43:01 -0000      1.336.2.4
@@ -2100,11 +2100,11 @@
        for( i= 1; i<curBlk->stop; i++){
                InstrPtr p = getInstrPtr(curBlk,i);
                if ( getFunctionId(p)== bindRef || getFunctionId(p)== 
bindidxRef)
-                       break;
+                       continue;
                sideeffects = sideeffects || hasSideEffects(p,FALSE);
                if ( p->token == RETURNsymbol || p->token == YIELDsymbol ||
-                                        p->barrier == RETURNsymbol || 
p->barrier == YIELDsymbol)
-            retseen++;
+                    p->barrier == RETURNsymbol || p->barrier == YIELDsymbol)
+                       retseen++;
        }
        if (i == curBlk->stop && retseen == 1)
                varSetProp(curBlk, getArg(curInstr, 0), inlineProp, op_eq, 
NULL);


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to