1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-4123 fix.

Missed update_used_tables() call for multi-update values.
This commit is contained in:
unknown
2013-02-11 10:55:58 +02:00
parent 0b2dc3fc59
commit 3f36dfe38c
5 changed files with 111 additions and 1 deletions

View File

@@ -1473,6 +1473,15 @@ int multi_update::prepare(List<Item> &not_used_values,
DBUG_RETURN(thd->is_fatal_error != 0);
}
void multi_update::update_used_tables()
{
Item *item;
List_iterator_fast<Item> it(*values);
while ((item= it++))
{
item->update_used_tables();
}
}
/*
Check if table is safe to update on fly