Changeset: b12e25699898 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/b12e25699898
Modified Files:
sql/storage/bat/bat_storage.c
Branch: default
Log Message:
Here expect strings only
diffs (18 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
@@ -2129,10 +2129,11 @@ double_elim_col(sql_trans *tr, sql_colum
if (col && ATOMIC_PTR_GET(&col->data)) {
BAT *b = bind_col(tr, col, QUICK);
- if (b && b->tvarsized) /* check double elimination */
+ if (b && ATOMstorage(b->ttype) == TYPE_str) { /* check double
elimination */
de = GDK_ELIMDOUBLES(b->tvheap);
- if (de)
- de = (int) ceil(b->tvheap->free / (double)
GDK_VAROFFSET);
+ if (de)
+ de = (int) ceil(b->tvheap->free / (double)
GDK_VAROFFSET);
+ }
assert(de >= 0 && de <= 16);
}
return de;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list