Changeset: c9b64d12dc81 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9b64d12dc81
Modified Files:
        monetdb5/modules/kernel/algebra.c
Branch: default
Log Message:

Only accept scalar values in BATconst.


diffs (12 lines):

diff --git a/monetdb5/modules/kernel/algebra.c 
b/monetdb5/modules/kernel/algebra.c
--- a/monetdb5/modules/kernel/algebra.c
+++ b/monetdb5/modules/kernel/algebra.c
@@ -1852,6 +1852,8 @@ ALGprojecttail(Client cntxt, MalBlkPtr m
 
        (void) cntxt;
        (void) mb;
+       if( isaBatType(getArgType(mb,pci,2)) )
+               throw(MAL,"algebra.project","Scalar value expected");
        if ((b = BATdescriptor(bid)) == NULL)
                throw(MAL, "algebra.project", RUNTIME_OBJECT_MISSING);
        bn = BATconst(b, v->vtype, VALptr(v), TRANSIENT);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to