mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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? 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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user