mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
fixed update with subselect (FOR REVIEW)
This commit is contained in:
@@ -5641,6 +5641,9 @@ make_cond_for_table(COND *cond,table_map tables,table_map used_table)
|
||||
static Item *
|
||||
part_of_refkey(TABLE *table,Field *field)
|
||||
{
|
||||
if (!table->reginfo.join_tab)
|
||||
return (Item*) 0; // field from outer non-select (UPDATE,...)
|
||||
|
||||
uint ref_parts=table->reginfo.join_tab->ref.key_parts;
|
||||
if (ref_parts)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user