Changeset: dd91e6b2ce88 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dd91e6b2ce88
Modified Files:
        sql/storage/store.c
Branch: Jan2022
Log Message:

Fix for bug #7263 Don't set a hash index as 'no_idx'


diffs (21 lines):

diff --git a/sql/storage/store.c b/sql/storage/store.c
--- a/sql/storage/store.c
+++ b/sql/storage/store.c
@@ -5778,6 +5778,7 @@ create_sql_ic(sqlstore *store, sql_alloc
 sql_idx *
 create_sql_idx_done(sql_trans *tr, sql_idx *i)
 {
+       (void) tr;
        if (i && i->key && hash_index(i->type)) {
                int ncols = list_length(i->columns);
                for (node *n = i->columns->h ; n ; n = n->next) {
@@ -5786,9 +5787,6 @@ create_sql_idx_done(sql_trans *tr, sql_i
                        kc->c->unique = (ncols == 1) ? 2 : MAX(kc->c->unique, 
1);
                }
        }
-       /* should we switch to oph_idx ? */
-       if (i->type == hash_idx && list_length(i->columns) == 1 && 
sql_trans_is_sorted(tr, ((sql_kc*)i->columns->h->data)->c))
-               i->type = no_idx;
        return i;
 }
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to