summaryrefslogtreecommitdiff
path: root/sql/sql_test.cc
diff options
context:
space:
mode:
authorunknown <psergey@psergey.(none)>2003-11-13 22:14:37 +0300
committerunknown <psergey@psergey.(none)>2003-11-13 22:14:37 +0300
commit738728bd1144a29a9b8b380c6a129afc3acdcfc4 (patch)
treeee449f3b5dcb528030efbeea367fa2b4c2183c94 /sql/sql_test.cc
parent4696bb41b4cce563ffff8d7b6c32576214109113 (diff)
parent6e464cc06d8340cb5f0f26fd6894301eef55af1f (diff)
downloadmariadb-git-738728bd1144a29a9b8b380c6a129afc3acdcfc4.tar.gz
merging in index_merge (in progress, not yet working)
BitKeeper/etc/logging_ok: auto-union
Diffstat (limited to 'sql/sql_test.cc')
-rw-r--r--sql/sql_test.cc32
1 files changed, 31 insertions, 1 deletions
diff --git a/sql/sql_test.cc b/sql/sql_test.cc
index 112d42e4643..e884e0e0e07 100644
--- a/sql/sql_test.cc
+++ b/sql/sql_test.cc
@@ -178,9 +178,39 @@ TEST_join(JOIN *join)
" quick select checked for each record (keys: %d)\n",
(int) tab->select->quick_keys);
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));
}