summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2000-10-16 02:29:48 +0300
committerunknown <monty@donna.mysql.com>2000-10-16 02:29:48 +0300
commit44920b90d87747d170ff0ca53613082593141288 (patch)
tree5027f963ce243feb9758c98bc0d3be35c3b4c614 /sql/opt_range.cc
parentbc45c8961e8141edc335aa3c2a54fdd52567126d (diff)
downloadmariadb-git-44920b90d87747d170ff0ca53613082593141288.tar.gz
Automatic primary key for BDB tables
sql/field.h: Cleanup sql/filesort.cc: Cleanup sql/opt_range.cc: Remove index in use sql/sql_base.cc: Allow Berkeley DB tables used only the index when the query only uses the index + data from the primary key sql/sql_select.cc: Fix for left join optimization BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index 6ff74b436aa..442597bbfad 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -2347,6 +2347,7 @@ bool QUICK_SELECT::unique_key_range()
QUICK_SELECT *get_quick_select_for_ref(TABLE *table, TABLE_REF *ref)
{
+ table->file->index_end(); // Remove old cursor
QUICK_SELECT *quick=new QUICK_SELECT(table, ref->key, 1);
KEY *key_info = &table->key_info[ref->key];
KEY_PART *key_part;