::index_read_last() method has been added
This commit is contained in:
parent
683d777ad8
commit
09fc04ad5f
@ -81,6 +81,15 @@ int ha_heap::index_read(byte * buf, const byte * key, uint key_len,
|
|||||||
return error;
|
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,
|
int ha_heap::index_read_idx(byte * buf, uint index, const byte * key,
|
||||||
uint key_len, enum ha_rkey_function find_flag)
|
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;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int ha_heap::index_next(byte * buf)
|
int ha_heap::index_next(byte * buf)
|
||||||
{
|
{
|
||||||
statistic_increment(ha_read_next_count,&LOCK_status);
|
statistic_increment(ha_read_next_count,&LOCK_status);
|
||||||
|
@ -67,6 +67,7 @@ class ha_heap: public handler
|
|||||||
uint key_len, enum ha_rkey_function find_flag);
|
uint key_len, enum ha_rkey_function find_flag);
|
||||||
int index_read_idx(byte * buf, uint idx, const byte * key,
|
int index_read_idx(byte * buf, uint idx, const byte * key,
|
||||||
uint key_len, enum ha_rkey_function find_flag);
|
uint key_len, enum ha_rkey_function find_flag);
|
||||||
|
int index_read_last(byte * buf, const byte * key, uint key_len);
|
||||||
int index_next(byte * buf);
|
int index_next(byte * buf);
|
||||||
int index_prev(byte * buf);
|
int index_prev(byte * buf);
|
||||||
int index_first(byte * buf);
|
int index_first(byte * buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user