mirror of
https://github.com/MariaDB/server.git
synced 2026-05-09 16:44:29 +02:00
MDEV-35919 Server crashes in Item_func_vec_distance::fix_length_and_dec upon reading from I_S table
This commit is contained in:
parent
49821f21ce
commit
9799777992
3 changed files with 13 additions and 0 deletions
|
|
@ -64,6 +64,8 @@ bool Item_func_vec_distance::fix_length_and_dec(THD *thd)
|
|||
if (auto *item= dynamic_cast<Item_field*>(args[i]->real_item()))
|
||||
{
|
||||
TABLE_SHARE *share= item->field->orig_table->s;
|
||||
if (share->tmp_table)
|
||||
break;
|
||||
Field *f= share->field[item->field->field_index];
|
||||
KEY *kinfo= share->key_info;
|
||||
for (uint j= share->keys; j < share->total_keys; j++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue