Changeset: 9117e7d7bd0f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=9117e7d7bd0f
Modified Files:
        sql/storage/bat/bat_storage.c
Branch: Oct2014
Log Message:

fix for bug 3593. When we move the insert bats into the bid slot we should
set the ibase.


diffs (19 lines):

diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -1381,6 +1381,7 @@ empty_col(sql_column *c)
        assert(c->data && c->base.allocated && bat->bid == 0);
        bat->bid = bat->ibid;
        bat->ibid = e_bat(type);
+       bat->ibase = BATcount(BBPquickdesc(bat->bid, 0));
        if (bat->bid == bat->ibid)
                bat->bid = copyBat(bat->ibid, type, 0);
 }
@@ -1394,6 +1395,7 @@ empty_idx(sql_idx *i)
        assert(i->data && i->base.allocated && bat->bid == 0);
        bat->bid = bat->ibid;
        bat->ibid = e_bat(type);
+       bat->ibase = BATcount(BBPquickdesc(bat->bid, 0));
        if (bat->bid == bat->ibid) 
                bat->bid = copyBat(bat->ibid, type, 0);
 }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to