~maria-captains/maria/5.3

Viewing all changes in revision 3457.1.1.

  • Committer: Igor Babaev
  • Date: 2012-03-13 20:34:20 UTC
  • mto: This revision was merged to the branch mainline in revision 3459.
  • Revision ID: igor@askmonty.org-20120313203420-959d3b3o5cpm5eqw
Fixed LP bug #953649.

Do not call, directly or indirectly, SQL_SELECT::test_quick_select()
for derived materialized tables / views when optimizing joins referring
to these tables / views to get cost estimates of materialization.
The current code does not create B-tree indexes for materialized 
derived tables / views. So now it's not possible to get any estimates
for ranges conditions over the results of the materialization.

The function mysql_derived_create() must take into account the fact
that array of the KEY structures specifying the keys over a derived
table / view may be moved after the optimization phase if the
derived table / view  is materialized.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: