Changeset: 50a1fa58368a for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=50a1fa58368a
Modified Files:
        gdk/gdk_bat.c
        gdk/gdk_batop.c
Branch: Jan2014
Log Message:

Add asserts that we don't want to change a view.


diffs (22 lines):

diff --git a/gdk/gdk_bat.c b/gdk/gdk_bat.c
--- a/gdk/gdk_bat.c
+++ b/gdk/gdk_bat.c
@@ -1274,6 +1274,7 @@ BUNappend(BAT *b, const void *t, bit for
                return NULL;
        }
 
+       assert(!isVIEW(b));
        bm = BBP_cache(-b->batCacheid);
        if ((b->tkey & BOUND2BTRUE) && BUNfnd(bm, t) != BUN_NONE) {
                return b;
diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c
--- a/gdk/gdk_batop.c
+++ b/gdk/gdk_batop.c
@@ -473,6 +473,7 @@ BATappend(BAT *b, BAT *n, bit force)
        if (b == NULL || n == NULL || (sz = BATcount(n)) == 0) {
                return b;
        }
+       assert(!isVIEW(b));
        if (b->htype != TYPE_void && b->htype != TYPE_oid) {
                GDKerror("BATappend: input must be (V)OID headed\n");
                return NULL;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to