MDEV-34880 Incorrect result for query with derived table having TEXT field

Fixup: check key flags only in the case of successful index initialization
This commit is contained in:
Oleg Smirnov 2024-10-28 18:48:55 +07:00
parent 6bd1cb0ea0
commit 52723ec09a

View File

@ -3749,11 +3749,11 @@ int handler::ha_index_init(uint idx, bool sorted)
inited= INDEX;
active_index= idx;
end_range= NULL;
/*
Do not allow reads from UNIQUE HASH indexes.
*/
DBUG_ASSERT(!(table->key_info[active_index].flags & HA_UNIQUE_HASH));
}
/*
Do not allow reads from UNIQUE HASH indexes.
*/
DBUG_ASSERT(!(table->key_info[active_index].flags & HA_UNIQUE_HASH));
DBUG_RETURN(result);
}