mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-536: LP:1050806 - different result for a query using subquery, and
MDEV-567: Wrong result from a query with correlated subquery if ICP is allowed: backport the fix developed for SHOW EXPLAIN: revision-id: psergey@askmonty.org-20120719115219-212cxmm6qvf0wlrb branch nick: 5.5-show-explain-r21 timestamp: Thu 2012-07-19 15:52:19 +0400 BUG#992942 & MDEV-325: Pre-liminary commit for testing and adjust it so that it handles DS-MRR scans correctly.
This commit is contained in:
@@ -10944,6 +10944,13 @@ int QUICK_RANGE_SELECT::reset()
|
||||
DBUG_ENTER("QUICK_RANGE_SELECT::reset");
|
||||
last_range= NULL;
|
||||
cur_range= (QUICK_RANGE**) ranges.buffer;
|
||||
|
||||
if (file->inited == handler::RND)
|
||||
{
|
||||
/* Handler could be left in this state by MRR */
|
||||
if ((error= file->ha_rnd_end()))
|
||||
DBUG_RETURN(error);
|
||||
}
|
||||
|
||||
if (file->inited == handler::NONE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user