summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-10-22 00:14:27 -0700
committerIgor Babaev <igor@askmonty.org>2011-10-22 00:14:27 -0700
commitfdf789a7eadf864ecc0e617f25f795fafda55026 (patch)
tree3435f1ab04045ad0e94c7b3b59eaada904d06c1a /sql/item_subselect.cc
parentb117a3c453a9a8a67906aa2bb06648c213a85b35 (diff)
downloadmariadb-git-fdf789a7eadf864ecc0e617f25f795fafda55026.tar.gz
Fixed LP bug #874378.
This bug happened for the queries over multi-table mergeable views because the bitmap TABLE::read_set of the underlying tables were not updated after the views had been merged into the query. Now this bitmaps are updated properly. Also the bitmap TABLE::merge_keys now is updated in prevention of future bugs.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 7dc26adf97e..22c62f0a6d7 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -492,7 +492,7 @@ void Item_subselect::recalc_used_tables(st_select_lex *new_parent,
upper->item->walk(&Item::enumerate_field_refs_processor, FALSE,
(uchar*)&fixer);
used_tables_cache |= fixer.used_tables;
- upper->item->walk(&Item::covering_keys_processor, FALSE, NULL);
+ upper->item->walk(&Item::update_table_bitmaps_processor, FALSE, NULL);
/*
if (after_pullout)
upper->item->fix_after_pullout(new_parent, &(upper->item));