summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2010-01-28 16:48:33 +0300
committerSergey Petrunya <psergey@askmonty.org>2010-01-28 16:48:33 +0300
commitf47b2d38f6c4851ef6bd069f5d1ffe033056d582 (patch)
tree84f3ebd6121f993eb30656da64790920566c5c46 /sql/item_func.h
parent742afd8eaeccb3531fa350b31445e8397dab7848 (diff)
downloadmariadb-git-f47b2d38f6c4851ef6bd069f5d1ffe033056d582.tar.gz
Subquery optimizations: non-semijoin materialization
- Backport into Maria DB 5.3, part 1
Diffstat (limited to 'sql/item_func.h')
-rw-r--r--sql/item_func.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/item_func.h b/sql/item_func.h
index 1043a72cdbb..70a88197b39 100644
--- a/sql/item_func.h
+++ b/sql/item_func.h
@@ -192,8 +192,8 @@ public:
Item_transformer transformer, uchar *arg_t);
void traverse_cond(Cond_traverser traverser,
void * arg, traverse_order order);
- bool is_expensive_processor(uchar *arg);
- virtual bool is_expensive() { return 0; }
+ // bool is_expensive_processor(uchar *arg);
+ // virtual bool is_expensive() { return 0; }
inline double fix_result(double value)
{
if (isfinite(value))
@@ -1053,6 +1053,7 @@ class Item_udf_func :public Item_func
{
protected:
udf_handler udf;
+ bool is_expensive_processor(uchar *arg) { return TRUE; }
public:
Item_udf_func(udf_func *udf_arg)
@@ -1676,6 +1677,9 @@ private:
bool execute();
bool execute_impl(THD *thd);
bool init_result_field(THD *thd);
+
+protected:
+ bool is_expensive_processor(uchar *arg) { return TRUE; }
public: