Urgent fix of MDEV-23446 fix:

Use the same variable in both scopes (from where we have "goto error" and target of the goto)
This commit is contained in:
Oleksandr Byelkin 2021-01-06 11:25:19 +01:00
parent d846b55d9b
commit 188b328335

View File

@ -2347,6 +2347,7 @@ int multi_update::send_data(List<Item> &not_used_values)
{
TABLE_LIST *cur_table;
DBUG_ENTER("multi_update::send_data");
int error= 0;
for (cur_table= update_tables; cur_table; cur_table= cur_table->next_local)
{
@ -2393,7 +2394,6 @@ int multi_update::send_data(List<Item> &not_used_values)
found++;
if (!can_compare_record || compare_record(table))
{
int error;
if ((error= cur_table->view_check_option(thd, ignore)) !=
VIEW_CHECK_OK)
@ -2476,7 +2476,6 @@ error:
}
else
{
int error;
TABLE *tmp_table= tmp_tables[offset];
if (copy_funcs(tmp_table_param[offset].items_to_copy, thd))
DBUG_RETURN(1);