summaryrefslogtreecommitdiff
path: root/sql/sql_expression_cache.h
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2010-09-06 15:34:24 +0300
committerunknown <sanja@askmonty.org>2010-09-06 15:34:24 +0300
commitd6a9b52269c2f64a8f793c4680eed9adece0a716 (patch)
treea5f6b2b18651a0641556d5c1d6a0e7f3908e8f09 /sql/sql_expression_cache.h
parent08d1de3732e50529318d533d5d83811b910ab9e9 (diff)
downloadmariadb-git-d6a9b52269c2f64a8f793c4680eed9adece0a716.tar.gz
Fixed LP BUG#615760: Check on double cache assignment added into the transformation methods.
Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/compare.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/group_by.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect3.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect3_jcl6.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect4.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_cache.result: Added test suite for LP BUG#615760 mysql-test/r/subselect_mat.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_no_mat.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_no_opts.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_no_semijoin.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_sj.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/r/subselect_sj_jcl6.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/suite/pbxt/r/subselect.result: Cache parameters print added in EXPLAIN EXTENDED output. mysql-test/t/subselect_cache.test: Cache parameters print added in EXPLAIN EXTENDED output. sql/item.cc: Item::set_expr_cache result fixed according to its description. Cache parameters print added in EXPLAIN EXTENDED output. sql/item.h: Cache parameters print added in EXPLAIN EXTENDED output. sql/item_cmpfunc.cc: Check on double cache assignment added into the transformation methods. sql/item_cmpfunc.h: Check on double cache assignment added into the transformation methods. sql/item_subselect.cc: Check on double cache assignment added into the transformation methods. sql/item_subselect.h: Check on double cache assignment added into the transformation methods. sql/sql_expression_cache.cc: Cache parameters print added. sql/sql_expression_cache.h: Cache parameters print added. sql/sql_select.cc: Removed unused method (now it is impossible to make double transformation with the cache). sql/sql_select.h: Removed unused method.
Diffstat (limited to 'sql/sql_expression_cache.h')
-rw-r--r--sql/sql_expression_cache.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_expression_cache.h b/sql/sql_expression_cache.h
index bb5dc7a76a2..e931eca6091 100644
--- a/sql/sql_expression_cache.h
+++ b/sql/sql_expression_cache.h
@@ -32,6 +32,11 @@ public:
into the expression cache
*/
virtual my_bool put_value(Item *value)= 0;
+
+ /**
+ Print cache parameters
+ */
+ virtual void print(String *str, enum_query_type query_type)= 0;
};
struct st_table_ref;
@@ -51,6 +56,8 @@ public:
virtual result check_value(Item **value);
virtual my_bool put_value(Item *value);
+ void print(String *str, enum_query_type query_type);
+
private:
void init();
bool make_equalities();