summaryrefslogtreecommitdiff
path: root/sql/ha_heap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r--sql/ha_heap.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc
index 29508207a70..60555d51402 100644
--- a/sql/ha_heap.cc
+++ b/sql/ha_heap.cc
@@ -98,6 +98,7 @@ void ha_heap::set_keys_for_scanning(void)
}
}
+
void ha_heap::update_key_stats()
{
for (uint i= 0; i < table->keys; i++)
@@ -113,6 +114,7 @@ void ha_heap::update_key_stats()
records_changed= 0;
}
+
int ha_heap::write_row(byte * buf)
{
int res;
@@ -439,8 +441,7 @@ ha_rows ha_heap::records_in_range(uint inx, key_range *min_key,
min_key->flag != HA_READ_KEY_EXACT ||
max_key->flag != HA_READ_AFTER_KEY)
return HA_POS_ERROR; // Can only use exact keys
- else
- return key->rec_per_key[key->key_parts-1];
+ return key->rec_per_key[key->key_parts-1];
}