Changeset: f5d50a66d8fa for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f5d50a66d8fa
Modified Files:
monetdb5/modules/mal/remote.mx
Branch: default
Log Message:
remote.get: perform width setting hack only for non-empty string bats
diffs (15 lines):
diff --git a/monetdb5/modules/mal/remote.mx b/monetdb5/modules/mal/remote.mx
--- a/monetdb5/modules/mal/remote.mx
+++ b/monetdb5/modules/mal/remote.mx
@@ -1320,7 +1320,10 @@
/* the BAT we will return */
b = BATnew(bb.Htype, bb.Ttype, bb.size);
b->hseqbase = bb.seqbase;
- b->T->width = bb.tailsize / bb.size;
+ /* for strings, the width may not match, fix it to match what we
+ * retrieved */
+ if (bb.size > 0 && bb.Ttype == TYPE_str)
+ b->T->width = bb.tailsize / bb.size;
mnstr_read(in, b->T->heap.base, bb.tailsize, 1);
b->batCount = bb.size;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list