mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
bugfix: disable ICP in InnoDB for indexes on virtual columns
because it doesn't work, vcols are never calculated for ICP
This commit is contained in:
parent
01dd355635
commit
1913daf42c
1 changed files with 6 additions and 0 deletions
|
@ -22553,6 +22553,12 @@ ha_innobase::idx_cond_push(
|
|||
DBUG_ASSERT(keyno != MAX_KEY);
|
||||
DBUG_ASSERT(idx_cond != NULL);
|
||||
|
||||
/* We can only evaluate the condition if all columns are stored.*/
|
||||
dict_index_t* idx = innobase_get_index(keyno);
|
||||
if (idx && dict_index_has_virtual(idx)) {
|
||||
DBUG_RETURN(idx_cond);
|
||||
}
|
||||
|
||||
pushed_idx_cond = idx_cond;
|
||||
pushed_idx_cond_keyno = keyno;
|
||||
in_range_check_pushed_down = TRUE;
|
||||
|
|
Loading…
Add table
Reference in a new issue