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

Modified Files:
      Tag: Aug2009
        bat_storage.mx 
Log Message:

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.


U bat_storage.mx
Index: bat_storage.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/storage/bat/bat_storage.mx,v
retrieving revision 1.42.2.3
retrieving revision 1.42.2.4
diff -u -d -r1.42.2.3 -r1.42.2.4
--- bat_storage.mx      18 Aug 2009 05:59:04 -0000      1.42.2.3
+++ bat_storage.mx      22 Sep 2009 21:18:36 -0000      1.42.2.4
@@ -286,7 +286,7 @@
        BAT *b = temp_descriptor(bat->ibid);
 
        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