diff options
author | unknown <sergefp@mysql.com> | 2003-11-21 00:27:54 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2003-11-21 00:27:54 +0300 |
commit | 075ce1ec5756584dc4f94908c224eb1ba7098c1f (patch) | |
tree | 6b4bea3efe528c37d33b93dc225687872b614d11 /sql/sql_test.cc | |
parent | 50685be51b54985cccaa299cb6d7a43ff1cbe2a1 (diff) | |
parent | bc20df185777934065c1974c90e7f81bc71d89cd (diff) | |
download | mariadb-git-075ce1ec5756584dc4f94908c224eb1ba7098c1f.tar.gz |
Merged, most likely needs post-merge fix
BitKeeper/etc/logging_ok:
auto-union
sql/opt_range.h:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_select.h:
Auto merged
sql/sql_test.cc:
Auto merged
sql/sql_union.cc:
Auto merged
sql/sql_update.cc:
Auto merged
sql/opt_range.cc:
Merged
sql/sql_select.cc:
Merged
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r-- | sql/sql_test.cc | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc index 449c43c24d1..bd527a4154a 100644 --- a/sql/sql_test.cc +++ b/sql/sql_test.cc @@ -181,9 +181,39 @@ TEST_join(JOIN *join) " quick select checked for each record (keys: %s)\n", tab->select->quick_keys.print(buf)); else if (tab->select->quick) - fprintf(DBUG_FILE," quick select used on key %s, length: %d\n", + { + int quick_type= tab->select->quick->get_type(); + if ((quick_type == QUICK_SELECT_I::QS_TYPE_RANGE) || + (quick_type == QUICK_SELECT_I::QS_TYPE_RANGE_DESC)) + { + fprintf(DBUG_FILE, + " quick select used on key %s, length: %d\n", form->key_info[tab->select->quick->index].name, tab->select->quick->max_used_key_length); + } + else if (quick_type == QUICK_SELECT_I::QS_TYPE_INDEX_MERGE) + { + QUICK_INDEX_MERGE_SELECT *quick_imerge= + (QUICK_INDEX_MERGE_SELECT*)tab->select->quick; + QUICK_RANGE_SELECT *quick; + fprintf(DBUG_FILE, + " index_merge quick select used\n"); + + List_iterator_fast<QUICK_RANGE_SELECT> it(quick_imerge->quick_selects); + while ((quick = it++)) + { + fprintf(DBUG_FILE, + " range quick select: key %s, length: %d\n", + form->key_info[quick->index].name, + quick->max_used_key_length); + } + } + else + { + fprintf(DBUG_FILE, + " quick select of unknown nature used\n"); + } + } else VOID(fputs(" select used\n",DBUG_FILE)); } |