Update of /cvsroot/monetdb/sql/src/storage/bat
In directory 
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv10921/src/storage/bat

Modified Files:
        bat_storage.mx 
Log Message:
moved most of the DDL statements into mal 


Index: bat_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_storage.mx,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -d -r1.48 -r1.49
--- bat_storage.mx      7 Jan 2010 15:24:33 -0000       1.48
+++ bat_storage.mx      10 Jan 2010 15:33:35 -0000      1.49
@@ -618,9 +618,15 @@
        } else if (bat && bat->ibid && !isTempTable(c->t)) {
                return new_persistent_bat(tr, c->data, c->t->sz);
        } else if (!bat->ibid) {
+               sql_column *fc;
+               int cnt = 0;
+
                /* alter ? */
-               if (c->t->base.flag == TR_OLD) {
-                       sql_column *fc = c->t->columns.set->h->data;
+               if (c->t->columns.set && (fc = c->t->columns.set->h->data) != 
NULL) {
+                       sql_delta *d = fc->data;
+                       cnt = d->cnt; 
+               }
+               if (cnt) {
                        sql_delta *d = fc->data;
 
                        bat->bid = copyBat(d->bid, type, 0);


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to