summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-10-16 02:29:48 +0300
committermonty@donna.mysql.com <>2000-10-16 02:29:48 +0300
commit422979694649ad87e1406a8ea408467cbc4e5d0e (patch)
tree5027f963ce243feb9758c98bc0d3be35c3b4c614 /sql/opt_range.cc
parent9323e733ff9bfbbc7555de94cb9b603f47502905 (diff)
downloadmariadb-git-422979694649ad87e1406a8ea408467cbc4e5d0e.tar.gz
Automatic primary key for BDB tables
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;