diff options
author | unknown <ram@mysql.r18.ru> | 2002-11-28 15:19:42 +0400 |
---|---|---|
committer | unknown <ram@mysql.r18.ru> | 2002-11-28 15:19:42 +0400 |
commit | 09fc04ad5fc768e041974b5254d2ca0452111570 (patch) | |
tree | 4a567319db553115fce422d8413d4ba78db9bd86 /sql/ha_heap.cc | |
parent | 683d777ad86d4c0b1f0b8ede5ef3d1fc6bc0c626 (diff) | |
download | mariadb-git-09fc04ad5fc768e041974b5254d2ca0452111570.tar.gz |
::index_read_last() method has been added
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r-- | sql/ha_heap.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc index 4a3b9495f6f..fb4061b31e0 100644 --- a/sql/ha_heap.cc +++ b/sql/ha_heap.cc @@ -81,6 +81,15 @@ int ha_heap::index_read(byte * buf, const byte * key, uint key_len, return error; } +int ha_heap::index_read_last(byte *buf, const byte *key, uint key_len) +{ + statistic_increment(ha_read_key_count, &LOCK_status); + int error= heap_rkey(file, buf, active_index, key, key_len, + HA_READ_PREFIX_LAST); + table->status= error ? STATUS_NOT_FOUND : 0; + return error; +} + int ha_heap::index_read_idx(byte * buf, uint index, const byte * key, uint key_len, enum ha_rkey_function find_flag) { @@ -90,7 +99,6 @@ int ha_heap::index_read_idx(byte * buf, uint index, const byte * key, return error; } - int ha_heap::index_next(byte * buf) { statistic_increment(ha_read_next_count,&LOCK_status); |