mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
mdev-4173: Wrong result (extra row) with semijoin=on, joins in outer query, LEFT JOIN in the subquery
Apply the patch from Patryk Pomykalski: - create_internal_tmp_table_from_heap() will now return information whether the last row that we tried to write was a duplicate row. (mysql-5.6 also has this change)
This commit is contained in:
@@ -2008,7 +2008,7 @@ int multi_update::send_data(List<Item> ¬_used_values)
|
||||
create_internal_tmp_table_from_heap(thd, tmp_table,
|
||||
tmp_table_param[offset].start_recinfo,
|
||||
&tmp_table_param[offset].recinfo,
|
||||
error, 1))
|
||||
error, 1, NULL))
|
||||
{
|
||||
do_update= 0;
|
||||
DBUG_RETURN(1); // Not a table_is_full error
|
||||
|
Reference in New Issue
Block a user