summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorIgor Babaev <igor@askmonty.org>2011-10-13 22:39:00 -0700
committerIgor Babaev <igor@askmonty.org>2011-10-13 22:39:00 -0700
commit9e6f484788db461b46a365d415ee7043cab65f1e (patch)
tree036a823dfb8bc150e94683defdf3462b1120d0d2 /sql/item.h
parent76e9131fbe2157edbab53f34f2866070a55d2a17 (diff)
downloadmariadb-git-9e6f484788db461b46a365d415ee7043cab65f1e.tar.gz
Fixed LP bug #872735.
This bug happened because the maps of covering keys for mergeable derived tables/views was not recalculated after the derived tables/vies had been merged into the main query.
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 8cacd231fbf..efd358db874 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -1816,6 +1816,11 @@ public:
bool get_date_result(MYSQL_TIME *ltime,uint fuzzydate);
bool is_null() { return field->is_null(); }
void update_null_value();
+ void update_used_tables()
+ {
+ if (field && field->table)
+ field->table->covering_keys.intersect(field->part_of_key);
+ }
Item *get_tmp_table_item(THD *thd);
bool collect_item_field_processor(uchar * arg);
bool add_field_to_set_processor(uchar * arg);