diff options
author | Igor Babaev <igor@askmonty.org> | 2012-09-08 22:36:55 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2012-09-08 22:36:55 -0700 |
commit | 8c131f1262099d4088f3c83642bd09cd83aab148 (patch) | |
tree | 9d8351d4eb6bc7603b5225016747078038d506aa /sql/sql_join_cache.cc | |
parent | 92eadf641590560cbc29ece9c37c7ed493a89468 (diff) | |
parent | 22de18ddcb97640f8f90c1c88d1dcd795ba1070f (diff) | |
download | mariadb-git-8c131f1262099d4088f3c83642bd09cd83aab148.tar.gz |
Merge 5.5 -> mwl248
Diffstat (limited to 'sql/sql_join_cache.cc')
-rw-r--r-- | sql/sql_join_cache.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sql/sql_join_cache.cc b/sql/sql_join_cache.cc index f6fc2ebfd1e..50d3bbfea26 100644 --- a/sql/sql_join_cache.cc +++ b/sql/sql_join_cache.cc @@ -3876,8 +3876,9 @@ int JOIN_TAB_SCAN_MRR::next() If a record in in an incremental cache contains no fields then the association for the last record in cache will be equal to cache->end_pos */ - DBUG_ASSERT(cache->buff <= (uchar *) (*ptr) && - (uchar *) (*ptr) <= cache->end_pos); + DBUG_ASSERT((!(mrr_mode & HA_MRR_NO_ASSOCIATION))? + (cache->buff <= (uchar *) (*ptr) && + (uchar *) (*ptr) <= cache->end_pos): TRUE); if (join_tab->table->vfield) update_virtual_fields(join->thd, join_tab->table); } @@ -4543,7 +4544,7 @@ bool JOIN_CACHE_BKAH::prepare_look_for_matches(bool skip_last) { last_matching_rec_ref_ptr= next_matching_rec_ref_ptr= 0; if (no_association && - (curr_matching_chain= get_matching_chain_by_join_key())) + !(curr_matching_chain= get_matching_chain_by_join_key())) return 1; last_matching_rec_ref_ptr= get_next_rec_ref(curr_matching_chain); return 0; |