Changeset: ed7debc891d3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/ed7debc891d3
Modified Files:
        monetdb5/optimizer/opt_mergetable.c
Branch: Jul2021
Log Message:

fixed problem with joinNxM in mergetable


diffs (21 lines):

diff --git a/monetdb5/optimizer/opt_mergetable.c 
b/monetdb5/optimizer/opt_mergetable.c
--- a/monetdb5/optimizer/opt_mergetable.c
+++ b/monetdb5/optimizer/opt_mergetable.c
@@ -888,7 +888,7 @@ mat_joinNxM(Client cntxt, MalBlkPtr mb, 
        InstrPtr r;
        mat_t *mat = ml->v;
        int *mats = (int*)GDKzalloc(sizeof(int) * args);
-       int nr_mats = 0, first = 0, res = 0;
+       int nr_mats = 0, first = -1, res = 0;
 
        if (!mats) {
                return -1;
@@ -898,7 +898,7 @@ mat_joinNxM(Client cntxt, MalBlkPtr mb, 
                mats[j] = is_a_mat(getArg(p,p->retc+j), ml);
                if (mats[j] != -1) {
                        nr_mats++;
-                       if (!first)
+                       if (first < 0)
                                first = j;
                }
        }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to