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

XIDencode(): test all values for nil, not only the first one (64a0d8e2c7a4)


diffs (12 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
@@ -65,6 +65,8 @@ XIDencode(BUN *rtrn, XIDcolumn col, oid 
        
        for ( ; p<q ; p++) {
                o = *(oid*) p;
+               if (o == oid_nil)
+                       throw(MAL, "xid.compress", "nil value in XIDencode()");
                if (o > XID_VAL_MAX)
                        throw(MAL, "xid.compress", "value too large in 
XIDencode()");
                v = (xid) o;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to