930
930
void heap_update_auto_increment(HP_INFO *info, const uchar *record)
932
932
uint64_t value= 0; /* Store unsigned values here */
935
935
HA_KEYSEG *keyseg= info->s->keydef[info->s->auto_key - 1].seg;
936
936
const uchar *key= (uchar*) record + keyseg->start;
938
938
switch (info->s->auto_key_type) {
943
943
value=(uint64_t) *(uchar*) key;
945
945
case HA_KEYTYPE_SHORT_INT:
948
948
case HA_KEYTYPE_USHORT_INT:
949
949
value=(uint64_t) uint2korr(key);
951
951
case HA_KEYTYPE_LONG_INT:
954
954
case HA_KEYTYPE_ULONG_INT:
955
955
value=(uint64_t) uint4korr(key);
961
961
value=(uint64_t) uint3korr(key);