Changeset: b07e9b4b7faf for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b07e9b4b7faf Modified Files: gdk/gdk_select.c Branch: Aug2024 Log Message:
Don't use same iterator for two different values at the same time. diffs (20 lines): diff --git a/gdk/gdk_select.c b/gdk/gdk_select.c --- a/gdk/gdk_select.c +++ b/gdk/gdk_select.c @@ -1365,6 +1365,7 @@ BATrange(BATiter *bi, const void *tl, co BAT *pb = NULL; int c; int (*atomcmp) (const void *, const void *) = ATOMcompare(bi->type); + BATiter bi2 = *bi; if (tl && (*atomcmp)(tl, ATOMnilptr(bi->type)) == 0) tl = NULL; @@ -1383,7 +1384,7 @@ BATrange(BATiter *bi, const void *tl, co else if ((minprop = BATgetprop_nolock(bi->b, GDK_MIN_BOUND)) != NULL) minval = VALptr(minprop); if (bi->maxpos != BUN_NONE) { - maxval = BUNtail(*bi, bi->maxpos); + maxval = BUNtail(bi2, bi->maxpos); maxincl = true; } else if ((maxprop = BATgetprop_nolock(bi->b, GDK_MAX_BOUND)) != NULL) { maxval = VALptr(maxprop); _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org