InnoDB Plugin
1.0
|
Functions | |
UNIV_INLINE int | cmp_data_data (ulint mtype, ulint prtype, const byte *data1, ulint len1, const byte *data2, ulint len2) |
UNIV_INLINE int | cmp_data_data_like_prefix (byte *data1, ulint len1, byte *data2, ulint len2) |
UNIV_INLINE int | cmp_data_data_like_suffix (byte *data1, ulint len1, byte *data2, ulint len2) |
UNIV_INLINE int | cmp_data_data_like_substr (byte *data1, ulint len1, byte *data2, ulint len2) |
UNIV_INLINE int | cmp_dfield_dfield (const dfield_t *dfield1, const dfield_t *dfield2) |
UNIV_INLINE int | cmp_dfield_dfield_like_suffix (dfield_t *dfield1, dfield_t *dfield2) |
UNIV_INLINE int | cmp_dfield_dfield_like_substr (dfield_t *dfield1, dfield_t *dfield2) |
UNIV_INLINE int | cmp_rec_rec (const rec_t *rec1, const rec_t *rec2, const ulint *offsets1, const ulint *offsets2, dict_index_t *index) |
Comparison services for records
Created 7/1/1994 Heikki Tuuri
UNIV_INLINE int cmp_data_data | ( | ulint | mtype, |
ulint | prtype, | ||
const byte * | data1, | ||
ulint | len1, | ||
const byte * | data2, | ||
ulint | len2 | ||
) |
This function is used to compare two data fields for which we know the data type.
mtype | in: main type |
prtype | in: precise type |
data1 | in: data field (== a pointer to a memory buffer) |
len1 | in: data field length or UNIV_SQL_NULL |
data2 | in: data field (== a pointer to a memory buffer) |
len2 | in: data field length or UNIV_SQL_NULL |
This function is used to compare two dfields where at least the first has its data type field set.
dfield1 | in: data field; must have type field set |
dfield2 | in: data field |
UNIV_INLINE int cmp_rec_rec | ( | const rec_t * | rec1, |
const rec_t * | rec2, | ||
const ulint * | offsets1, | ||
const ulint * | offsets2, | ||
dict_index_t * | index | ||
) |
This function is used to compare two physical records. Only the common first fields are compared.
rec1 | in: physical record |
rec2 | in: physical record |
offsets1 | in: rec_get_offsets(rec1, index) |
offsets2 | in: rec_get_offsets(rec2, index) |
index | in: data dictionary index |