mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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:
@@ -3749,11 +3749,11 @@ int handler::ha_index_init(uint idx, bool sorted)
|
|||||||
inited= INDEX;
|
inited= INDEX;
|
||||||
active_index= idx;
|
active_index= idx;
|
||||||
end_range= NULL;
|
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);
|
DBUG_RETURN(result);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user