summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2006-08-15 20:33:14 +0400
committersergefp@mysql.com <>2006-08-15 20:33:14 +0400
commit86c5cad4e0165a5cdf7b5615a66f5dac8c5c01aa (patch)
treefc2e555039f9cfa7f5c80b261a3d4f08bacd093f /sql/item_subselect.cc
parent40a1fbdffb778825d8330bed83b28d8209e27b27 (diff)
downloadmariadb-git-86c5cad4e0165a5cdf7b5615a66f5dac8c5c01aa.tar.gz
BUG#21077: Possible crash caused by invalid sequence of handler::* calls:
The crash was caused by invalid sequence of handler::** calls: ha_smth->index_init(); ha_smth->index_next_same(); (2) (2) is an invalid call as it was not preceeded by any 'scan setup' call like index_first() or index_read(). The cause was that QUICK_SELECT::reset() didn't "fully reset" the quick select- current QUICK_RANGE wasn't forgotten, and quick select might attempt to continue reading the range, which would result in the above mentioned invalid sequence of handler calls. 5.x versions are not affected by the bug - they already have the missing "range=NULL" clause.
Diffstat (limited to 'sql/item_subselect.cc')
0 files changed, 0 insertions, 0 deletions