summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-08-29 12:31:01 +0300
committermonty@donna.mysql.com <>2000-08-29 12:31:01 +0300
commit066d55c0c09d589d17bf466682134af50cb59e14 (patch)
tree8c9e3c031400ac400edcf6561fe51f4bdbd69369 /sql/ha_heap.cc
parentd564acf14eb07cefedf0218c90fd109c61dc6e2f (diff)
downloadmariadb-git-066d55c0c09d589d17bf466682134af50cb59e14.tar.gz
Bug fixes for 3.23.23
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index 989497cee6e..591ca0bc813 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -251,6 +251,21 @@ int ha_heap::rename_table(const char * from, const char * to)
}
+ha_rows ha_heap::records_in_range(int inx,
+ const byte *start_key,uint start_key_len,
+ enum ha_rkey_function start_search_flag,
+ const byte *end_key,uint end_key_len,
+ enum ha_rkey_function end_search_flag)
+{
+ KEY *pos=table->key_info+inx;
+ if (start_key_len != end_key_len ||
+ start_key_len != pos->key_length ||
+ start_search_flag != HA_READ_KEY_EXACT ||
+ end_search_flag != HA_READ_KEY_EXACT)
+ return HA_POS_ERROR; // Can't only use exact keys
+ return 10; // Good guess
+}
+
/* We can just delete the heap on creation */
int ha_heap::create(const char *name, TABLE *form, HA_CREATE_INFO *create_info)