1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#ifndef _TEST0AUX_H
#define TEST0AUX_H
#include <stdio.h>
#include "innodb.h"
/*********************************************************************
Read a value from an integer column in an InnoDB tuple. */
ib_u64_t
read_int_from_tuple(
/*================*/
/* out: column value */
ib_tpl_t tpl, /* in: InnoDB tuple */
const ib_col_meta_t* col_meta, /* in: col meta data */
int i); /* in: column number */
/*********************************************************************
Print all columns in a tuple. */
void
print_tuple(
/*========*/
FILE* stream, /* in: Output stream */
const ib_tpl_t tpl); /* in: Tuple to print */
/*********************************************************************
Setup the InnoDB configuration parameters. */
void
test_configure(void);
/*================*/
/*********************************************************************
Generate random text upto max size. */
int
gen_rand_text(
/*==========*/
char* ptr, /* in,out: text written here */
int max_size); /* in: max size of ptr */
#endif /* _TEST0AUX_H */
|