16 #include "heap_priv.h"
19 #include <drizzled/error_t.h>
23 int heap_rkey(
HP_INFO *info,
unsigned char *record,
int inx,
const unsigned char *key,
24 key_part_map ,
enum ha_rkey_function )
30 if ((uint) inx >= share->keys)
32 return(errno= HA_ERR_WRONG_INDEX);
35 info->current_record= UINT32_MAX;
37 if (!(pos= hp_search(info, share->keydef + inx, key, 0)))
42 if (!(keyinfo->flag & HA_NOSAME))
43 memcpy(&info->lastkey[0], key, (
size_t) keyinfo->length);
45 hp_extract_record(share, record, pos);
46 info->update= HA_STATE_AKTIV;
53 unsigned char* heap_find(
HP_INFO *info,
int inx,
const unsigned char *key)
55 return hp_search(info, info->getShare()->keydef + inx, key, 0);
TODO: Rename this file - func.h is stupid.