Changeset: 26e365c7f352 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=26e365c7f352
Modified Files:
        gdk/gdk_firstn.c
Branch: Jul2017
Log Message:

fixed crash in firstn with distinct


diffs (12 lines):

diff --git a/gdk/gdk_firstn.c b/gdk/gdk_firstn.c
--- a/gdk/gdk_firstn.c
+++ b/gdk/gdk_firstn.c
@@ -735,7 +735,7 @@ BATfirstn_grouped_with_groups(BAT **topn
                        BBPunfix(bn1->batCacheid);
                        return  GDK_FAIL;
                }
-               bn4 = BATselect(b, bn3, BUNtail(bi, last - b->hseqbase), NULL, 
1, 0, 0);
+               bn4 = BATselect(b, bn3, BUNtail(bi, BUNlast(b) - b->hseqbase), 
NULL, 1, 0, 0);
                BBPunfix(bn3->batCacheid);
                if (bn4 == NULL) {
                        BBPunfix(bn1->batCacheid);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to