Changeset: d44d8e11614f for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d44d8e11614f
Modified Files:
monetdb5/modules/kernel/algebra.mx
Branch: default
Log Message:
Fix bounds on slice.
diffs (18 lines):
diff --git a/monetdb5/modules/kernel/algebra.mx
b/monetdb5/modules/kernel/algebra.mx
--- a/monetdb5/modules/kernel/algebra.mx
+++ b/monetdb5/modules/kernel/algebra.mx
@@ -3404,12 +3404,13 @@ ALGslice_oid(int *ret, bat *bid, oid *st
bv = BATmirror( b);
if ( bv == NULL)
throw(MAL, "algebra.slice", MAL_MALLOC_FAIL);
- bv = BATselect( bv, (void*) start, (void*) end);
+ bv = BATselect_( bv, (ptr) start, (ptr) end, TRUE, FALSE);
if ( bv == NULL)
throw(MAL, "algebra.slice", MAL_MALLOC_FAIL);
bv = BATmirror( bv);
if ( bv == NULL)
throw(MAL, "algebra.slice", MAL_MALLOC_FAIL);
+
*ret = bv->batCacheid;
BBPkeepref(*ret);
BBPreleaseref(b->batCacheid);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list