Bug #13327 | VIEW performs index scan | ||
---|---|---|---|
Submitted: | 19 Sep 2005 16:29 | Modified: | 13 Oct 2005 2:38 |
Reporter: | Georg Richter | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S1 (Critical) |
Version: | 5.0.14 | OS: | |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[19 Sep 2005 16:29]
Georg Richter
[3 Oct 2005 14:23]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30638
[10 Oct 2005 14:53]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/30860
[11 Oct 2005 20:14]
Evgeny Potemkin
check_equality() finds equalities among field items. It checks input items to be Item_fields thus skipping view's fields, which are represented by Item_direct_view_ref. Because of this index wasn't applied in all cases it can be. Fixed in 5.0.15, cset 1.2019.3.9
[13 Oct 2005 2:38]
Mike Hillyer
Documented in 5.0.15 changelog: <listitem> <para> Queries that use index in normal SELECT may cause range scan in VIEWs. (Bug #13327) </para> </listitem>