summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-04-30 15:27:17 +0400
committerAlexey Kopytov <Alexey.Kopytov@Sun.com>2010-04-30 15:27:17 +0400
commit26570994b272bba5cc4bd4d98ba30c9747ff5d50 (patch)
treee985545604b0c3979ff3e20174ef78d3c640217e /sql
parent4e378bc55bd3abdb83e6c14e2aea0a70c6d61ddf (diff)
parent97374a11849f3b61ed431c1abe75a283d765e859 (diff)
downloadmariadb-git-26570994b272bba5cc4bd4d98ba30c9747ff5d50.tar.gz
Automerge.
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_select.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index a426f4b68a1..291432c2bb6 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -1107,8 +1107,7 @@ JOIN::optimize()
}
if (conds && const_table_map != found_const_table_map &&
- (select_options & SELECT_DESCRIBE) &&
- select_lex->master_unit() == &thd->lex->unit) // upper level SELECT
+ (select_options & SELECT_DESCRIBE))
{
conds=new Item_int((longlong) 0,1); // Always false
}