summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
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
commit0f5afe5d7f6eacb125475e43372574bb97387c47 (patch)
treee985545604b0c3979ff3e20174ef78d3c640217e /sql/sql_select.cc
parent55b7b7563725f3f4273c3175cfa0d867afc18857 (diff)
parent96366e1196484db3270196c84859fc8eea8cf656 (diff)
downloadmariadb-git-0f5afe5d7f6eacb125475e43372574bb97387c47.tar.gz
Automerge.
Diffstat (limited to 'sql/sql_select.cc')
-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
}