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

Modified Files:
        sql_optimizer.mx 
Log Message:
propagated changes of Tuesday Jul 15 2008 - Thursday Jul 17 2008
from the SQL_2-24 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2008/07/15 - nielsnes: src/backends/monet5/sql_optimizer.mx,1.181.2.2
we need to drop declared tables when we leave the scope.
THis fixes bug mdb_starts_with_sql_debug_64.SF-1999354.sql.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: sql_optimizer.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet5/sql_optimizer.mx,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- sql_optimizer.mx    11 Jul 2008 08:34:16 -0000      1.186
+++ sql_optimizer.mx    17 Jul 2008 13:28:55 -0000      1.187
@@ -328,6 +328,10 @@
                        sql_bpm *bpm = NULL;
                        sql_schema *s = mvc_bind_schema(m, sname);
 
+                       if (!s || strcmp(s->base.name, dt_schema) == 0) {
+                               pushInstruction(mb,p);
+                               continue;
+                       }
                        if (f == binddbatRef) {
                                mode = getVarConstant(mb, getArg(p,3)).val.ival;
                        } else {


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to