Changeset: 8f632a9fa242 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8f632a9fa242
Modified Files:
        monetdb5/modules/kernel/bat5.c
        monetdb5/tests/gdkTests/Tests/void.stable.out
Branch: default
Log Message:

Fix bat.info(): it should return key and value bats in that order.
Also approve test that now works as expected.


diffs (43 lines):

diff --git a/monetdb5/modules/kernel/bat5.c b/monetdb5/modules/kernel/bat5.c
--- a/monetdb5/modules/kernel/bat5.c
+++ b/monetdb5/modules/kernel/bat5.c
@@ -332,8 +332,8 @@ CMDinfo(BAT **ret1, BAT **ret2, BAT *b)
                return GDK_FAIL;
        BATseqbase(bk,0);
        BATseqbase(bv,0);
-       *ret1 = bv;
-       *ret2 = bk;
+       *ret1 = bk;
+       *ret2 = bv;
 
        if (b->batPersistence == PERSISTENT) {
                strcpy(mode, "persistent");
diff --git a/monetdb5/tests/gdkTests/Tests/void.stable.out 
b/monetdb5/tests/gdkTests/Tests/void.stable.out
--- a/monetdb5/tests/gdkTests/Tests/void.stable.out
+++ b/monetdb5/tests/gdkTests/Tests/void.stable.out
@@ -419,6 +419,25 @@ end main;
 # void int       # type
 #-----------------#
 [ 0@0,   3       ]
+[ "1" ]
+[ "1@0" ]
+[ "1" ]
+[ "0@0" ]
+#-----------------#
+# h    t         # name
+# void oid       # type
+#-----------------#
+[ 0@0,   nil     ]
+#-----------------#
+# h    t         # name
+# void int       # type
+#-----------------#
+[ 0@0,   20      ]
+#-----------------#
+# h    t         # name
+# void int       # type
+#-----------------#
+[ nil,   0       ]
 
 
 # 23:46:00 >  
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to