Changeset: ae7d4b7134d9 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ae7d4b7134d9 Modified Files: monetdb5/modules/mal/tablet.c Branch: Jan2014 Log Message:
use the correct inserted slice for reporting the correct number of inserted rows. diffs (14 lines): diff --git a/monetdb5/modules/mal/tablet.c b/monetdb5/modules/mal/tablet.c --- a/monetdb5/modules/mal/tablet.c +++ b/monetdb5/modules/mal/tablet.c @@ -284,6 +284,10 @@ TABLETcollect_parts(Tablet *as, BUN offs b->tkey = TRUE; b->batDirty = TRUE; + if (offset>0) { + BBPunfix(bv->batCacheid); + bats[i] = BATslice(b, offset, BATcount(b)); + } if (cnt != BATcount(b)) { snprintf(errbuf, sizeof(errbuf), "Error: column " BUNFMT " count " BUNFMT " differs from " BUNFMT "\n", i, BATcount(b), cnt); MT_lock_set(&errorlock, "TABLETcollect_parts"); _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list