mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-14346: incorrect result of intersect with ANY/ALL/IN subquery
Reinit internal state of select_unit before using to correctly run it after first time.
This commit is contained in:
@ -1384,6 +1384,9 @@ bool st_select_lex_unit::exec()
|
||||
if (saved_error)
|
||||
DBUG_RETURN(saved_error);
|
||||
|
||||
if (union_result)
|
||||
union_result->init();
|
||||
|
||||
if (uncacheable || !item || !item->assigned() || describe)
|
||||
{
|
||||
if (!fake_select_lex && !(with_element && with_element->is_recursive))
|
||||
|
Reference in New Issue
Block a user