mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 19:25:32 +02:00
Proposed fix for #751
Fields in key_expr (mysql_ha_read) wasn't linked to tables. Hmm. How did it work at all? mysql-test/r/alias.result: It's better to delete table after the test mysql-test/r/handler.result: appropriate result mysql-test/t/alias.test: it's better to drop table after test mysql-test/t/handler.test: test case for #751 sql/sql_handler.cc: fix_fields called
This commit is contained in:
parent
fd0ecf1e47
commit
8d7eb4a0e5
5 changed files with 21 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue