From 296b450d3b58ded0fd4d4972161414c6cc7a80e5 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 11 Jan 2012 10:35:16 +0200 Subject: [PATCH] Fix the comment. --- sql/sql_select.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sql/sql_select.cc b/sql/sql_select.cc index c4a62ce6bc4..fe52bc05465 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -14948,10 +14948,8 @@ do_select(JOIN *join,List *fields,TABLE *table,Procedure *procedure) But WHERE should checked here (we alredy have read tables). Notice that make_join_select() splits all conditions in this case into two groups exec_const_cond and outer_ref_cond. - Within this other conditions are not exists. At the same time - exec_const_cond is already checked either by make_join_select or in the - beginning of JOIN::exec. Therefore here it is sufficient to check only - pseudo_bits_cond. + If join->table_count == join->const_tables then it is + sufficient to check only the condition pseudo_bits_cond. */ DBUG_ASSERT(join->outer_ref_cond == NULL); if (!join->pseudo_bits_cond || join->pseudo_bits_cond->val_int())