Changeset: d8731319a4a1 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d8731319a4a1
Modified Files:
        monetdb5/modules/mal/pp_algebra.c
Branch: default
Log Message:

Only project values if there are values to project.
Fixes crash in sqlancer22 if running in single-threaded pipeline mode.


diffs (12 lines):

diff --git a/monetdb5/modules/mal/pp_algebra.c 
b/monetdb5/modules/mal/pp_algebra.c
--- a/monetdb5/modules/mal/pp_algebra.c
+++ b/monetdb5/modules/mal/pp_algebra.c
@@ -2413,7 +2413,7 @@ LALGprojection(Client ctx, bat *rid, bat
        /* get max id from gid */
        if (ATOMvarsized(r->ttype) && cnt < max)
                memset(Tloc(r, cnt), 0, r->twidth*(max-cnt));
-       cnt = BATcount(b);
+       cnt = BATcount(g);
        if (!tt)
                r->tseqbase = b->tseqbase;
        if (tt && cnt) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to