MySQL 9.1.0
Source Code Documentation
mi_key.cc File Reference
#include <sys/types.h>
#include <algorithm>
#include <cmath>
#include "my_byteorder.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_macros.h"
#include "mysql/strings/m_ctype.h"
#include "storage/myisam/myisamdef.h"
#include "storage/myisam/sp_defs.h"

Macros

#define FIX_LENGTH(cs, pos, length, char_length)
 

Functions

static int _mi_put_key_in_record (MI_INFO *info, uint keynr, bool unpack_blobs, uchar *record)
 
uint _mi_make_key (MI_INFO *info, uint keynr, uchar *key, const uchar *record, my_off_t filepos)
 
uint _mi_pack_key (MI_INFO *info, uint keynr, uchar *key, const uchar *old, key_part_map keypart_map, HA_KEYSEG **last_used_keyseg)
 
int _mi_read_key_record (MI_INFO *info, my_off_t filepos, uchar *buf)
 
int mi_check_index_cond (MI_INFO *info, uint keynr, uchar *record)
 
ulonglong retrieve_auto_increment (MI_INFO *info, const uchar *record)
 

Macro Definition Documentation

◆ FIX_LENGTH

#define FIX_LENGTH (   cs,
  pos,
  length,
  char_length 
)
Value:
do { \
if (length > char_length) \
char_length = my_charpos(cs, pos, pos + length, char_length); \
char_length = std::min(char_length, length); \
} while (0)
size_t my_charpos(const CHARSET_INFO *cs, const char *beg, const char *end, size_t pos)
Definition: m_ctype.h:656
Definition: commit_order_queue.h:34
bool length(const dd::Spatial_reference_system *srs, const Geometry *g1, double *length, bool *null) noexcept
Computes the length of linestrings and multilinestrings.
Definition: length.cc:76

Function Documentation

◆ _mi_make_key()

uint _mi_make_key ( MI_INFO info,
uint  keynr,
uchar key,
const uchar record,
my_off_t  filepos 
)

◆ _mi_pack_key()

uint _mi_pack_key ( MI_INFO info,
uint  keynr,
uchar key,
const uchar old,
key_part_map  keypart_map,
HA_KEYSEG **  last_used_keyseg 
)

◆ _mi_put_key_in_record()

static int _mi_put_key_in_record ( MI_INFO info,
uint  keynr,
bool  unpack_blobs,
uchar record 
)
static

◆ _mi_read_key_record()

int _mi_read_key_record ( MI_INFO info,
my_off_t  filepos,
uchar buf 
)

◆ mi_check_index_cond()

int mi_check_index_cond ( MI_INFO info,
uint  keynr,
uchar record 
)

◆ retrieve_auto_increment()

ulonglong retrieve_auto_increment ( MI_INFO info,
const uchar record 
)