summaryrefslogtreecommitdiff
path: root/sql/item_subselect.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2002-06-06 16:28:22 +0300
committerunknown <bell@sanja.is.com.ua>2002-06-06 16:28:22 +0300
commit90ced85443e4563ab1a7f94581691d2b7e30bdaa (patch)
tree7498edfb6fcf77eeefa9cc20558a029c0f2fa4fe /sql/item_subselect.h
parent4a1dec3dfbf750dab7fcd6a5c6785c28b96a3c65 (diff)
downloadmariadb-git-90ced85443e4563ab1a7f94581691d2b7e30bdaa.tar.gz
Prevent needless rexecuting empty subselects
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r--sql/item_subselect.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h
index e27f14fb83d..c6963df2d53 100644
--- a/sql/item_subselect.h
+++ b/sql/item_subselect.h
@@ -31,6 +31,7 @@ class Item_subselect :public Item
protected:
longlong int_value;
double real_value;
+ my_bool assigned; /* value already assigned to subselect */
my_bool executed; /* simple subselect is executed */
my_bool optimized; /* simple subselect is optimized */
my_bool error; /* error in query */
@@ -59,6 +60,7 @@ public:
max_length= item->max_length;
decimals= item->decimals;
res_type= item->res_type;
+ assigned= item->assigned;
executed= item->executed;
select_lex= item->select_lex;
join= item->join;