Changeset: 129bfea4dca9 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=129bfea4dca9
Modified Files:
gdk/gdk_calc.c
Branch: default
Log Message:
fixed problem in BATconvert(b,s), where a s is void/dense and b doesn't require
anything except for a type change (no data changes). We used copy, but need to
set the hseqbase using s.
diffs (15 lines):
diff --git a/gdk/gdk_calc.c b/gdk/gdk_calc.c
--- a/gdk/gdk_calc.c
+++ b/gdk/gdk_calc.c
@@ -14014,7 +14014,10 @@ BATconvert(BAT *b, BAT *s, int tp, bool
scale1 == 0 && scale2 == 0 && precision == 0 &&
(tp != TYPE_str ||
BATatoms[b->ttype].atomToStr == BATatoms[TYPE_str].atomToStr)) {
- return COLcopy(b, tp, false, TRANSIENT);
+ bn = COLcopy(b, tp, false, TRANSIENT);
+ if (bn && s)
+ bn->hseqbase = s->hseqbase;
+ return bn;
}
if (ATOMstorage(tp) == TYPE_ptr) {
GDKerror("type combination (convert(%s)->%s) "
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list