1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fixed update with subselect (FOR REVIEW)

This commit is contained in:
bell@sanja.is.com.ua
2002-10-24 22:59:29 +03:00
parent 0ca3212a8c
commit 21ca25debf
8 changed files with 63 additions and 15 deletions

View File

@ -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)
{