Update of /cvsroot/monetdb/sql/src/storage/restrict
In directory 
sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18004/src/storage/restrict

Modified Files:
      Tag: SQL_2-24
        restrict_storage.mx 
Log Message:
we need to drop declared tables when we leave the scope.
THis fixes bug mdb_starts_with_sql_debug_64.SF-1999354.sql.


U restrict_storage.mx
Index: restrict_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/restrict/restrict_storage.mx,v
retrieving revision 1.4.2.3
retrieving revision 1.4.2.4
diff -u -d -r1.4.2.3 -r1.4.2.4
--- restrict_storage.mx 28 May 2008 07:17:19 -0000      1.4.2.3
+++ restrict_storage.mx 15 Jul 2008 14:20:57 -0000      1.4.2.4
@@ -563,7 +563,8 @@
 {
        int ok = LOG_OK;
 
-       (void)tr;
+       if ((tr && tr->parent == gtrans) || !b)
+               return LOG_OK;
        /* also rollback non committed changes */
        if (rollback) {
                BAT *bd = temp_descriptor(b->bid);
@@ -592,8 +593,7 @@
 destroy_col(sql_trans *tr, sql_column *c)
 {
        int ok = destroy_bat(tr, c->data, (tr && tr->stime == c->base.wtime));
-       if (!tr || tr->parent != gtrans) 
-               c->data = NULL;
+       c->data = NULL;
        return ok;
 }
 
@@ -607,8 +607,7 @@
 destroy_idx(sql_trans *tr, sql_idx *i)
 {
        int ok = destroy_bat(tr, i->data, (tr && tr->stime == i->base.wtime));
-       if (!tr || tr->parent != gtrans) 
-               i->data = NULL;
+       i->data = NULL;
        return ok;
 }
 
@@ -623,8 +622,7 @@
 destroy_del(sql_trans *tr, sql_table *t)
 {
        int ok = destroy_bat(tr, t->data, (tr && tr->stime == t->base.wtime));
-       if (!tr || tr->parent != gtrans) 
-               t->data = NULL;
+       t->data = NULL;
        return ok;
 }
 


-------------------------------------------------------------------------
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