Changeset: 2167d80ea078 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2167d80ea078
Modified Files:
sql/storage/bat/res_table.c
Branch: Jul2017
Log Message:
When creating BATs to wrap scalar results, unfix them.
This fixes bug 6395.
diffs (18 lines):
diff --git a/sql/storage/bat/res_table.c b/sql/storage/bat/res_table.c
--- a/sql/storage/bat/res_table.c
+++ b/sql/storage/bat/res_table.c
@@ -106,11 +106,13 @@ res_col_create(sql_trans *tr, res_table
return NULL;
}
t->order = o->batCacheid;
- bat_incref(t->order);
+ BBPkeepref(t->order);
}
}
c->b = b->batCacheid;
bat_incref(c->b);
+ if (mtype != TYPE_bat)
+ BBPunfix(c->b);
t->cur_col++;
assert(t->cur_col <= t->nr_cols);
return c;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list