diff options
author | hf@deer.(none) <> | 2003-12-06 23:37:24 +0400 |
---|---|---|
committer | hf@deer.(none) <> | 2003-12-06 23:37:24 +0400 |
commit | dff5b0a75b25443c8570c2617bc7bb66654677aa (patch) | |
tree | c197ea3c314656fc5c4d9c91c3bfca2b8f7deeba /sql/item_subselect.h | |
parent | 0ca7f54b5e963583f9fafc3a7363313247d53f31 (diff) | |
download | mariadb-git-dff5b0a75b25443c8570c2617bc7bb66654677aa.tar.gz |
Fix for #1992
This bug happens when a query, having subselects in the fields list,
needs temporary table.
Item_subselect::get_tmp_table_item isn't implemented and just returns
*this. So the tmp_table_item takes value not from temporary but
from original table.
Diffstat (limited to 'sql/item_subselect.h')
-rw-r--r-- | sql/item_subselect.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_subselect.h b/sql/item_subselect.h index 8444dc7bf66..84f5de5a622 100644 --- a/sql/item_subselect.h +++ b/sql/item_subselect.h @@ -89,6 +89,7 @@ public: bool const_item() const; inline table_map get_used_tables_cache() { return used_tables_cache; } inline bool get_const_item_cache() { return const_item_cache; } + Item *get_tmp_table_item(THD *thd); void update_used_tables(); void print(String *str); bool change_engine(subselect_engine *eng) |