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

Typo that disabled code.


diffs (12 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
@@ -977,7 +977,7 @@ CMDcalcavg(Client cntxt, MalBlkPtr mb, M
        bid = getArgReference_bat(stk, pci, pci->retc + 0);
        if ((b = BATdescriptor(*bid)) == NULL)
                throw(MAL, "aggr.avg", SQLSTATE(HY002) RUNTIME_OBJECT_MISSING);
-       if (pci->retc == pci->retc + 2) {
+       if (pci->argc == pci->retc + 2) {
                bat *sid = getArgReference_bat(stk, pci, pci->retc + 1);
                if (*sid && (s = BATdescriptor(*sid)) == NULL) {
                        BBPunfix(b->batCacheid);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to