summaryrefslogtreecommitdiff
path: root/sql/item.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.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.cc')
-rw-r--r--sql/item.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 4d516aa33f8..f5ce0fbc7a7 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -2172,10 +2172,9 @@ bool Item_field::enumerate_field_refs_processor(uchar *arg)
return FALSE;
}
-bool Item_field::covering_keys_processor(uchar *arg)
+bool Item_field::update_table_bitmaps_processor(uchar *arg)
{
- if (field && field->table)
- field->table->covering_keys.intersect(field->part_of_key);
+ update_table_bitmaps();
return FALSE;
}