Changeset: d129ef32e549 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d129ef32e549
Modified Files:
        monetdb5/modules/mal/batcalc.c
Branch: Jun2020
Log Message:

A nil bat is (potentially) a candidate list.  That's the whole point here.


diffs (21 lines):

diff --git a/monetdb5/modules/mal/batcalc.c b/monetdb5/modules/mal/batcalc.c
--- a/monetdb5/modules/mal/batcalc.c
+++ b/monetdb5/modules/mal/batcalc.c
@@ -1107,6 +1107,7 @@ CMDbatBETWEEN(Client cntxt, MalBlkPtr mb
        tp = getArgType(mb, pci, 4);
        if (tp == TYPE_bat || isaBatType(tp)) {
                bid = *getArgReference_bat(stk, pci, 4);
+               has_cand = true;
                if (!is_bat_nil(bid)) {
                        s = BATdescriptor(bid);
                        if (s == NULL)
@@ -1115,8 +1116,7 @@ CMDbatBETWEEN(Client cntxt, MalBlkPtr mb
                                r = s;
                                s = NULL;
                                has_cand = false;
-                       } else
-                               has_cand = true;
+                       }
                }
                bc++;
        }
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to