Changeset: fec4dba1fdb5 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fec4dba1fdb5
Modified Files:
sql/storage/bat/bat_storage.c
Branch: use_min_max_prop
Log Message:
Handle range MAXVALUE (ie don't set max)
diffs (13 lines):
diff --git a/sql/storage/bat/bat_storage.c b/sql/storage/bat/bat_storage.c
--- a/sql/storage/bat/bat_storage.c
+++ b/sql/storage/bat/bat_storage.c
@@ -2259,7 +2259,8 @@ col_set_range(sql_trans *tr, sql_column
MT_lock_set(&b->theaplock);
if (add_range) {
BATsetprop_nolock(b, GDK_MIN_BOUND, b->ttype,
pt->part.range.minvalue);
- BATsetprop_nolock(b, GDK_MAX_BOUND, b->ttype,
pt->part.range.maxvalue);
+ if (ATOMcmp(b->ttype, pt->part.range.maxvalue,
ATOMnilptr(b->ttype)) != 0)
+ BATsetprop_nolock(b, GDK_MAX_BOUND,
b->ttype, pt->part.range.maxvalue);
if (!pt->with_nills || !col->null)
BATsetprop_nolock(b, GDK_NOT_NULL,
b->ttype, ATOMnilptr(b->ttype));
} else {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]