MySQL  8.0.16
Source Code Documentation
mi_test1.cc File Reference
#include <m_string.h>
#include <my_getopt.h>
#include "my_byteorder.h"
#include "myisam.h"
#include "sql/field.h"
#include "mi_extrafunc.h"

Macros

#define MAX_REC_LENGTH   1024
 

Functions

static void usage ()
 
static int run_test (const char *filename)
 
static void get_options (int argc, char *argv[])
 
static void create_key (uchar *key, uint rownr)
 
static void create_record (uchar *record, uint rownr)
 
static void update_record (uchar *record)
 
static void strappend (char *s, size_t len, char fill)
 
int main (int argc, char *argv[])
 
static void create_key_part (uchar *key, uint rownr)
 
static bool get_one_option (int optid, const struct my_option *opt, char *argument)
 

Variables

static int rec_pointer_size = 0
 
static int flags [50]
 
static int key_field = FIELD_SKIP_PRESPACE
 
static int extra_field = FIELD_SKIP_ENDSPACE
 
static int key_type = HA_KEYTYPE_NUM
 
static int create_flag = 0
 
static uint insert_count
 
static uint update_count
 
static uint remove_count
 
static uint pack_keys = 0
 
static uint pack_seg = 0
 
static uint key_length
 
static uint unique_key = HA_NOSAME
 
static bool key_cacheing
 
static bool null_fields
 
static bool silent
 
static bool skip_update
 
static bool opt_unique
 
static bool verbose
 
static MI_COLUMNDEF recinfo [4]
 
static MI_KEYDEF keyinfo [10]
 
static HA_KEYSEG keyseg [10]
 
static HA_KEYSEG uniqueseg [10]
 
static uchar blob_key [MAX_REC_LENGTH]
 
static uchar blob_record [MAX_REC_LENGTH+20 *20]
 
static struct my_option my_long_options []
 

Macro Definition Documentation

◆ MAX_REC_LENGTH

#define MAX_REC_LENGTH   1024

Function Documentation

◆ create_key()

static void create_key ( uchar key,
uint  rownr 
)
static

◆ create_key_part()

static void create_key_part ( uchar key,
uint  rownr 
)
static

◆ create_record()

static void create_record ( uchar record,
uint  rownr 
)
static

◆ get_one_option()

static bool get_one_option ( int  optid,
const struct my_option opt,
char *  argument 
)
static

◆ get_options()

static void get_options ( int  argc,
char *  argv[] 
)
static

◆ main()

int main ( int  argc,
char *  argv[] 
)

◆ run_test()

static int run_test ( const char *  filename)
static

◆ strappend()

static void strappend ( char *  s,
size_t  len,
char  fill 
)
inlinestatic

◆ update_record()

static void update_record ( uchar record)
static

◆ usage()

static void usage ( void  )
static

Variable Documentation

◆ blob_key

uchar blob_key[MAX_REC_LENGTH]
static

◆ blob_record

uchar blob_record[MAX_REC_LENGTH+20 *20]
static

◆ create_flag

int create_flag = 0
static

◆ extra_field

int extra_field = FIELD_SKIP_ENDSPACE
static

◆ flags

int flags[50]
static

◆ insert_count

uint insert_count
static

◆ key_cacheing

bool key_cacheing
static

◆ key_field

int key_field = FIELD_SKIP_PRESPACE
static

◆ key_length

uint key_length
static

◆ key_type

int key_type = HA_KEYTYPE_NUM
static

◆ keyinfo

MI_KEYDEF keyinfo[10]
static

◆ keyseg

HA_KEYSEG keyseg[10]
static

◆ my_long_options

struct my_option my_long_options[]
static

◆ null_fields

bool null_fields
static

◆ opt_unique

bool opt_unique
static

◆ pack_keys

uint pack_keys = 0
static

◆ pack_seg

uint pack_seg = 0
static

◆ rec_pointer_size

int rec_pointer_size = 0
static

◆ recinfo

MI_COLUMNDEF recinfo[4]
static

◆ remove_count

uint remove_count
static

◆ silent

bool silent
static

◆ skip_update

bool skip_update
static

◆ unique_key

uint unique_key = HA_NOSAME
static

◆ uniqueseg

HA_KEYSEG uniqueseg[10]
static

◆ update_count

uint update_count
static

◆ verbose

bool verbose
static