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

inheritCOL(): added some sanity checks (assertions)


diffs (24 lines):

diff --git a/monetdb5/modules/mal/xid.c b/monetdb5/modules/mal/xid.c
--- a/monetdb5/modules/mal/xid.c
+++ b/monetdb5/modules/mal/xid.c
@@ -294,6 +294,12 @@ inheritCOL( BAT *bn, COLrec *cn, BAT *b,
 {
        /* inherit column as view */
        str nme = cn->id;
+
+       assert((bn->H == cn && cn->type == TYPE_void) ||
+              (bn->T == cn && cn->type == TYPE_void));
+       assert(b->H  == c  || b->T  == c );
+       assert(p == 0 || p == VIEWhparent(b) || p == VIEWtparent(b));
+
        if (p == 0)
                p = b->batCacheid;
        assert(bn->U->deleted  == b->U->deleted );
@@ -316,6 +322,7 @@ inheritCOL( BAT *bn, COLrec *cn, BAT *b,
                cn->hash = NULL;
        else
                cn->hash = c->hash;
+
        return bn;
 }
 
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to