Commit 1913daf4 authored by Sergei Golubchik's avatar Sergei Golubchik

bugfix: disable ICP in InnoDB for indexes on virtual columns

because it doesn't work, vcols are never calculated for ICP
parent 01dd3556
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment