1
0
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:
Oleksandr Byelkin
2017-11-13 10:02:59 +01:00
parent d2bf101cbf
commit d1b666b5c6
4 changed files with 44 additions and 4 deletions

View File

@ -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))