mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
handler should be used with constant expressions only (or rand)
This commit is contained in:
@ -194,7 +194,12 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
|
||||
for (key_len=0 ; (item=it_ke++) ; key_part++)
|
||||
{
|
||||
if (item->fix_fields(thd, tables))
|
||||
return -1;
|
||||
goto err;
|
||||
if (item->used_tables() & ~RAND_TABLE_BIT)
|
||||
{
|
||||
my_error(ER_WRONG_ARGUMENTS,MYF(0),"HANDLER ... READ");
|
||||
goto err;
|
||||
}
|
||||
item->save_in_field(key_part->field, 1);
|
||||
key_len+=key_part->store_length;
|
||||
}
|
||||
|
Reference in New Issue
Block a user