mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +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:
@ -288,7 +288,7 @@ my_bool Expression_cache_tmptable::put_value(Item *value)
|
||||
if (create_internal_tmp_table_from_heap(table_thd, cache_table,
|
||||
cache_table_param.start_recinfo,
|
||||
&cache_table_param.recinfo,
|
||||
error, 1))
|
||||
error, 1, NULL))
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user