MySQL 8.0.40
Source Code Documentation
rem0cmp.ic File Reference

Comparison services for records. More...

#include <mysql_com.h>
#include "field_types.h"

Functions

static int cmp_dfield_dfield (const dfield_t *dfield1, const dfield_t *dfield2, bool is_asc)
 Compare two data fields. More...
 
static int cmp_multi_value_dfield_dfield (const dfield_t *dfield1, const dfield_t *dfield2)
 
static int cmp_rec_rec (const rec_t *rec1, const rec_t *rec2, const ulint *offsets1, const ulint *offsets2, const dict_index_t *index, bool spatial_index_non_leaf, ulint *matched_fields, bool cmp_btree_recs)
 
static bool cmp_dfield_dfield_eq_prefix (const dfield_t *dfield1, const dfield_t *dfield2)
 Compare two data fields. More...
 

Detailed Description

Comparison services for records.

Created 7/1/1994 Heikki Tuuri

Function Documentation

◆ cmp_dfield_dfield()

static int cmp_dfield_dfield ( const dfield_t dfield1,
const dfield_t dfield2,
bool  is_asc 
)
inlinestatic

Compare two data fields.

Parameters
[in]dfield1data field; must have type field set
[in]dfield2data field
[in]is_asctrue=ASC, false=DESC
Returns
the comparison result of dfield1 and dfield2
Return values
0if dfield1 is equal to dfield2
negativeif dfield1 is less than dfield2
positiveif dfield1 is greater than dfield2

◆ cmp_dfield_dfield_eq_prefix()

static bool cmp_dfield_dfield_eq_prefix ( const dfield_t dfield1,
const dfield_t dfield2 
)
inlinestatic

Compare two data fields.

Parameters
[in]dfield1data field
[in]dfield2data field
Returns
the comparison result of dfield1 and dfield2
Return values
trueif dfield1 is equal to dfield2, or a prefix of dfield1
falseotherwise

◆ cmp_multi_value_dfield_dfield()

static int cmp_multi_value_dfield_dfield ( const dfield_t dfield1,
const dfield_t dfield2 
)
inlinestatic

◆ cmp_rec_rec()

static int cmp_rec_rec ( const rec_t rec1,
const rec_t rec2,
const ulint offsets1,
const ulint offsets2,
const dict_index_t index,
bool  spatial_index_non_leaf,
ulint matched_fields,
bool  cmp_btree_recs 
)
inlinestatic