diff options
author | konstantin@mysql.com <> | 2005-10-13 11:53:00 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2005-10-13 11:53:00 +0400 |
commit | b2ff38202d2ba6020ce6b5f3bfb8e2c939d0189c (patch) | |
tree | 1b8bb03febfb001c7548f0c3e434fa74bc71c9da /sql/item_subselect.cc | |
parent | 2c7505b2638d13511db6eb27fc84dc1c37d6efde (diff) | |
download | mariadb-git-b2ff38202d2ba6020ce6b5f3bfb8e2c939d0189c.tar.gz |
A fix and a test case for Bug#12736 "Server crash during a select".
The bug was in JOIN::join_free which was wrongly determining that
all joins have been already executed and therefore all used tables
can be closed.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r-- | sql/item_subselect.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc index 1ef3a92f548..8afc885e59b 100644 --- a/sql/item_subselect.cc +++ b/sql/item_subselect.cc @@ -1413,6 +1413,12 @@ void subselect_union_engine::cleanup() } +bool subselect_union_engine::is_executed() const +{ + return unit->executed; +} + + void subselect_uniquesubquery_engine::cleanup() { DBUG_ENTER("subselect_uniquesubquery_engine::cleanup"); |