Changeset: 6251fe9bdfc3 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/6251fe9bdfc3
Modified Files:
monetdb5/modules/mal/pp_slicer.c
Branch: default
Log Message:
for now only on string bats
diffs (13 lines):
diff --git a/monetdb5/modules/mal/pp_slicer.c b/monetdb5/modules/mal/pp_slicer.c
--- a/monetdb5/modules/mal/pp_slicer.c
+++ b/monetdb5/modules/mal/pp_slicer.c
@@ -172,7 +172,8 @@ SLICERnth_slice(Client cntxt, MalBlkPtr
BAT *b = BATdescriptor(*bid);
if (!b)
return createException(SQL, "slicer.nth_slice", SQLSTATE(HY002)
RUNTIME_OBJECT_MISSING);
- b = BATsetaccess(b, BAT_READ);
+ if (b->ttype == TYPE_str)
+ b = BATsetaccess(b, BAT_READ);
BAT *r = NULL;
if (BATcount(b) < s) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]