Changeset: 656089df98f6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=656089df98f6
Modified Files:
sql/backends/monet5/datacell/dcoperator.c
Branch: default
Log Message:
Allow only void-headed bat
diffs (17 lines):
diff --git a/sql/backends/monet5/datacell/dcoperator.c
b/sql/backends/monet5/datacell/dcoperator.c
--- a/sql/backends/monet5/datacell/dcoperator.c
+++ b/sql/backends/monet5/datacell/dcoperator.c
@@ -289,8 +289,12 @@ DCsliceStrict(int *ret, bat *bid, lng *s
assert(*end < (lng) BUN_MAX);
assert(*start <= *end);
+ assert(b->htype == TYPE_void);
if ((BUN) ((*end - *start) + 1) > BATcount(b)) {
- bn = BATnew(b->htype, b->ttype, 0);
+ bn = BATnew(TYPE_void, b->ttype, 0);
+ if( bn == NULL){
+ throw(SQL,"datacell.slice",MAL_MALLOC_FAIL);
+ }
BATsetcount(bn, 0);
*ret = bn->batCacheid;
BBPkeepref(*ret);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list