summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2003-05-28 16:52:56 +0300
committerbell@sanja.is.com.ua <>2003-05-28 16:52:56 +0300
commitfe6175c40da04f619fbedefeeb1b4a6acef422f7 (patch)
treebdd4144655cde94721e38ddd9dd17c703d52e14c /sql/item_subselect.h
parent7df5635ff2845bd708711f6b790997a3c68d5f2a (diff)
downloadmariadb-git-fe6175c40da04f619fbedefeeb1b4a6acef422f7.tar.gz
added mem_root switching for subselect if it is necessary
(bug #518 fixed)
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index fc4dad5a6b3..3ed3f2af0e9 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -36,6 +36,8 @@ class Item_subselect :public Item_result_field
my_bool engine_owner; /* Is this item owner of engine */
my_bool value_assigned; /* value already assigned to subselect */
protected:
+ /* thread handler, will be assigned in fix_fields only */
+ THD *thd;
/* substitution instead of subselect in case of optimization */
Item *substitution;
/* engine that perform execution of subselect (single select or union) */
@@ -81,6 +83,7 @@ public:
return null_value;
}
bool fix_fields(THD *thd, TABLE_LIST *tables, Item **ref);
+ bool exec();
virtual void fix_length_and_dec();
table_map used_tables() const;