Update of /cvsroot/monetdb/sql/src/backends/monet5
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17054/src/backends/monet5

Modified Files:
        sql_gencode.mx 
Log Message:
the statement tree for 'instantiated' functions wasn't freed



Index: sql_gencode.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_gencode.mx,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -d -r1.259 -r1.260
--- sql_gencode.mx      25 Dec 2007 21:34:31 -0000      1.259
+++ sql_gencode.mx      30 Dec 2007 18:23:49 -0000      1.260
@@ -833,7 +833,7 @@
                                joinRef;
 
                        @:SQLprelude@
-
+               
                        if (s->op2.stval->type == st_atom &&
                            s->op3.stval->type == st_atom &&
                            atom_null(s->op2.stval->op1.aval) &&
@@ -845,6 +845,13 @@
                                @:SQLpostlude@
                                break;
                        }
+                       /* if st_join2 try to convert to bandjoin 
+                       if (s->op2.stval->type == st_binop || 
s->op3.stval->type == st_binop) {
+                               assert(0);
+                               printf("possible bandjoin ?\n");
+                       }
+                       */
+
 
                        q = newStmt2(mb, algebraRef, cmd);
                        q = pushArgument(mb, q, l);
@@ -1336,7 +1343,7 @@
                        @:SQLpostlude@
                }
                        break;
-               case st_atom:{
+               case st_atom: {
                        atom *a = s->op1.aval;
                        if (atom_null(a)) {
                                q = newStmt1(mb, calcRef, 
atom_type(a)->type->base.name);
@@ -2025,6 +2032,7 @@
                }
        }
        backend_dumpstmt(be, curBlk, s);
+       stmt_destroy(s);
        pushEndInstruction(curBlk);
        setLifespan(curBlk);
        addQueryToCache(c);


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

Reply via email to