MySQL 9.1.0
Source Code Documentation
sp_test.cc File Reference
#include "my_byteorder.h"
#include "myisam.h"
#include "sp_defs.h"
#include "sql/field.h"
#include "mi_extrafunc.h"

Macros

#define MAX_REC_LENGTH   1024
 
#define KEYALG   HA_KEY_ALG_RTREE
 

Functions

static void create_linestring (uchar *record, uint rownr)
 
static void print_record (uchar *record, my_off_t offs, const char *tail)
 
static void create_key (uchar *key, uint rownr)
 
static void print_key (const uchar *key, const char *tail)
 
static int run_test (const char *filename)
 
static int read_with_pos (MI_INFO *file, int silent)
 
static int rtree_CreateLineStringWKB (double *ords, uint n_dims, uint n_points, uchar *wkb)
 
static void rtree_PrintWKB (uchar *wkb, uint n_dims)
 
int main (int argc, char *argv[])
 

Variables

static char blob_key [MAX_REC_LENGTH]
 

Macro Definition Documentation

◆ KEYALG

#define KEYALG   HA_KEY_ALG_RTREE

◆ MAX_REC_LENGTH

#define MAX_REC_LENGTH   1024

Function Documentation

◆ create_key()

static void create_key ( uchar key,
uint  rownr 
)
static

◆ create_linestring()

static void create_linestring ( uchar record,
uint  rownr 
)
static

◆ main()

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

◆ print_key()

static void print_key ( const uchar key,
const char *  tail 
)
static

◆ print_record()

static void print_record ( uchar record,
my_off_t  offs,
const char *  tail 
)
static

◆ read_with_pos()

static int read_with_pos ( MI_INFO file,
int  silent 
)
static

◆ rtree_CreateLineStringWKB()

static int rtree_CreateLineStringWKB ( double *  ords,
uint  n_dims,
uint  n_points,
uchar wkb 
)
static

◆ rtree_PrintWKB()

static void rtree_PrintWKB ( uchar wkb,
uint  n_dims 
)
static

◆ run_test()

int run_test ( const char *  filename)
static

Variable Documentation

◆ blob_key

char blob_key[MAX_REC_LENGTH]
static