Changeset: ae03e77d002f for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae03e77d002f
Modified Files:
sql/backends/monet5/sql_basket.c
Branch: trails
Log Message:
Don't use the BAT from the storage (according to Niels, it's forbidden to use
this BAT outside ...), create a new BAT instead.
This fixes the problem that when COPY INTO, basket.append() appends all columns
into one BAT, which then causes BATs not aligned errors (e.g. "BATgroupminmax:
BATgroupmax: b and g must be aligned")
diffs (12 lines):
diff --git a/sql/backends/monet5/sql_basket.c b/sql/backends/monet5/sql_basket.c
--- a/sql/backends/monet5/sql_basket.c
+++ b/sql/backends/monet5/sql_basket.c
@@ -179,7 +179,7 @@ BSKTregisterInternal(Client cntxt, MalBl
// collect the column names and the storage
for ( i=0, o = t->columns.set->h; i <colcnt && o; o = o->next, i++){
sql_column *col = o->data;
- b = store_funcs.bind_col(m->session->tr,col,RD_INS);
+ b = COLnew(0, col->type.type->localtype, 0, TRANSIENT);
assert(b);
BBPfix(b->batCacheid);
baskets[idx].bats[i]= b;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list