diff options
author | unknown <sanja@montyprogram.com> | 2012-01-11 10:35:16 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-01-11 10:35:16 +0200 |
commit | 296b450d3b58ded0fd4d4972161414c6cc7a80e5 (patch) | |
tree | d621529d13f22d5980c134598c2eeef5e2be938d /sql | |
parent | cf31ccc33c2f5ac5e2ae92c672bd54cc7ce63107 (diff) | |
download | mariadb-git-296b450d3b58ded0fd4d4972161414c6cc7a80e5.tar.gz |
Fix the comment.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_select.cc | 6 |
1 files 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<Item> *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()) |