-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #25989915: LOOSE INDEX SCANS RETURNING WRONG RESULT
Problem: -------- This problem occurs under the following conditions: 1) Table has a unique index. 2) Query checks whether a loose index scan is applicable to this query. And mistakenly chooses it despite unique indexes having no index extensions. This is can give wrong results. A similar problem also exists in Bug #26532061. Solution: --------- Index extensions are not applicable to UNIQUE indexes for loose index scans. So Field::is_part_of_actual_key should also consider the HA_NOSAME flag.
- Loading branch information
Sreeharsha Ramanavarapu
committed
Sep 11, 2017
1 parent
11ffcb1
commit 7352f13
Showing
5 changed files
with
63 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters