Changeset: b708ad75885d for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b708ad75885d Branch: default Log Message:
Merge with Jul2021 branch. diffs (19 lines): diff --git a/sql/storage/bat/bat_utils.c b/sql/storage/bat/bat_utils.c --- a/sql/storage/bat/bat_utils.c +++ b/sql/storage/bat/bat_utils.c @@ -85,6 +85,15 @@ temp_copy(log_bid b, bool renew, bool te } else { if (!(o = quick_descriptor(b))) return BID_NIL; + if (o->ttype < 0) { + /* bat was never loaded and it's type is not yet filled in */ + if ((o = BATdescriptor(b)) == NULL) + return BID_NIL; + assert(o->ttype >= 0); + BBPunfix(o->batCacheid); + o = quick_descriptor(b); + assert(o != NULL); + } if (!(c = bat_new(o->ttype, COLSIZE, PERSISTENT))) return BID_NIL; } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list