summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-10-19 23:28:37 -0700
committerIgor Babaev <igor@askmonty.org>2011-10-19 23:28:37 -0700
commit945f12cf8fc361844f3553599795beb549fc8c1d (patch)
tree3909d7a45593f23f0c82c224e94a16d66d124899 /sql/item.cc
parent4720b6f68bfcec7b6fc4c3772ae61bbbc629ca5d (diff)
downloadmariadb-git-945f12cf8fc361844f3553599795beb549fc8c1d.tar.gz
Fixed LP bug #877316.
This bug happened due to incompleteness of the fix for bug 872735: the occurrences of the fields in the conditions of correlated subqueries were not taken into account when recalculating covering keys bit maps.
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 8710b8f9024..4d516aa33f8 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -2172,6 +2172,12 @@ bool Item_field::enumerate_field_refs_processor(uchar *arg)
return FALSE;
}
+bool Item_field::covering_keys_processor(uchar *arg)
+{
+ if (field && field->table)
+ field->table->covering_keys.intersect(field->part_of_key);
+ return FALSE;
+}
const char *Item_ident::full_name() const
{