Update of /cvsroot/monetdb/sql/src/storage
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv30886/src/storage

Modified Files:
        sql_storage.h store.mx 
Log Message:
alters are handled now as updates (so each new column/index has
the same aligned bat storage). 


U store.mx
Index: store.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/store.mx,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- store.mx    14 Nov 2008 14:39:35 -0000      1.23
+++ store.mx    27 Dec 2008 21:27:45 -0000      1.24
@@ -3796,7 +3796,7 @@
        if (isTable(ni->t) && idx_is_column(ni->type))
                store_funcs.create_idx(tr, ni);
        table_funcs.table_insert(tr, sysidx, &ni->base.id, &t->base.id, 
&ni->type, ni->base.name);
-       t->base.wtime = t->s->base.wtime = tr->wtime = tr->stime;
+       ni->base.wtime = t->base.wtime = t->s->base.wtime = tr->wtime = 
tr->stime;
        if (isGlobalTable(t)) 
                tr->schema_updates ++;
        return ni;

U sql_storage.h
Index: sql_storage.h
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/sql_storage.h,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -d -r1.54 -r1.55
--- sql_storage.h       10 Oct 2008 09:01:37 -0000      1.54
+++ sql_storage.h       27 Dec 2008 21:27:44 -0000      1.55
@@ -25,7 +25,7 @@
 #define COLSIZE        1024
 
 #define isNew(x)  (x->base.flag == TR_NEW)
-#define isTemp(x) (isNew(x)||x->t->persistence!=SQL_PERSIST)
+#define isTemp(x) (isNew(x->t)||x->t->persistence!=SQL_PERSIST)
 #define isTempTable(x)   (x->persistence!=SQL_PERSIST)
 #define isGlobalTable(x) (x->persistence!=SQL_LOCAL_TEMP && \
                          x->persistence!=SQL_DECLARED_TABLE)


------------------------------------------------------------------------------
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to