Changeset: 5209de24b395 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=5209de24b395
Modified Files:
        monetdb5/modules/mal/remote.c
Branch: Aug2011
Log Message:

remote: apply mirror when input BAT is mirrored

Make sure we look at the BAT the same way the caller does, such that we
don't end up with unintended head-tail swaps.


diffs (15 lines):

diff --git a/monetdb5/modules/mal/remote.c b/monetdb5/modules/mal/remote.c
--- a/monetdb5/modules/mal/remote.c
+++ b/monetdb5/modules/mal/remote.c
@@ -1068,6 +1068,11 @@ str RMTbincopyto(Client cntxt, MalBlkPtr
 
        if (b == NULL)
                throw(MAL, "remote.bincopyto", RUNTIME_OBJECT_UNDEFINED);
+
+       /* mirror when argument is mirrored */
+       if (bid < 0)
+               b = BATmirror(b);
+
        if (b->htype != TYPE_void && b->hvarsized)
                throw(ILLARG, "remote.bincopyto", "varsized-headed BATs are not 
supported");
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to