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

Modified Files:
        bat_storage.mx 
Log Message:
propagated changes of Tuesday Sep 22 2009 - Wednesday Sep 23 2009
from the Aug2009 branch to the development trunk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/09/22 - nielsnes: src/storage/bat/bat_storage.mx,1.42.2.4

fix for bug ID 2864313
SQL: Update changes all columns with same type and default

A single bat was used for multiple columns.
We now make sure we copy the bat when its already used.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Index: bat_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_storage.mx,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -d -r1.46 -r1.47
--- bat_storage.mx      12 Sep 2009 20:40:45 -0000      1.46
+++ bat_storage.mx      23 Sep 2009 07:25:49 -0000      1.47
@@ -299,7 +299,7 @@
                bat->cached = NULL;
        }
        bat->cnt += BATcount(i);
-       if ( BATcount(b) == 0 && !isVIEW(i) && i->htype == TYPE_void && 
i->ttype != TYPE_void && bat->ibase == i->H->seq){
+       if ( BATcount(b) == 0 && !isVIEW(i) && BBP_lrefs(i->batCacheid) <= 1 && 
i->htype == TYPE_void && i->ttype != TYPE_void && bat->ibase == i->H->seq){
                temp_destroy(bat->ibid);
                bat->ibid = temp_create(i);
                BATseqbase(i, bat->ibase);


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins

Reply via email to