diff options
author | Jorgen Loland <jorgen.loland@oracle.com> | 2013-03-20 11:20:12 +0100 |
---|---|---|
committer | Jorgen Loland <jorgen.loland@oracle.com> | 2013-03-20 11:20:12 +0100 |
commit | 30e2a543872915353b9d4b1e45e51c8d793965bf (patch) | |
tree | 918c03c33a30b6b821be3023a582cc4334147561 /include/my_bit.h | |
parent | 3d10d7d12414efa077d0721bc8a6166d420b8110 (diff) | |
download | mariadb-git-30e2a543872915353b9d4b1e45e51c8d793965bf.tar.gz |
Bug#16394084: LOOSE INDEX SCAN WITH QUOTED INT PREDICATE
RETURNS RANDOM DATA
MySQL 5.5 specific version of bugfix.
When Loose Index Scan Range access is used, MySQL execution needs
to copy non-aggregated fields. end_send() checked if this was
necessary by checking if join_tab->select->quick had type
QS_TYPE_GROUP_MIN_MAX.
In this bug, however, MySQL created a sort index to sort the rows
read from this range access method. create_sort_index() deletes
join_tab->select->quick which makes it impossible to inquire
the join_tab if LIS has been used.
The fix for MySQL 5.5 is to introduce a variable in JOIN_TAB
that stores whether or not LIS has been used. There is no need
for this variable in later MySQL versions because the relevant
code has been refactored.
Diffstat (limited to 'include/my_bit.h')
0 files changed, 0 insertions, 0 deletions