1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Proposed fix for #751

Fields in key_expr (mysql_ha_read) wasn't linked to tables.
Hmm. How did it work at all?
This commit is contained in:
hf@deer.(none)
2003-07-03 20:57:51 +05:00
parent b2769e2792
commit dbb95326b0
5 changed files with 21 additions and 0 deletions

View File

@ -193,6 +193,8 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
Item *item;
for (key_len=0 ; (item=it_ke++) ; key_part++)
{
if (item->fix_fields(thd, tables))
return -1;
item->save_in_field(key_part->field, 1);
key_len+=key_part->store_length;
}