MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
dict0mem.cc File Reference
#include "dict0mem.h"
#include "rem0rec.h"
#include "data0type.h"
#include "mach0data.h"
#include "dict0dict.h"
#include "fts0priv.h"
#include "ha_prototypes.h"
#include "mysql_com.h"
#include "lock0lock.h"
Include dependency graph for dict0mem.cc:

Go to the source code of this file.

Macros

#define DICT_HEAP_SIZE   100

Functions

UNIV_INTERN dict_table_tdict_mem_table_create (const char *name, ulint space, ulint n_cols, ulint flags, ulint flags2)
UNIV_INTERN void dict_mem_table_free (dict_table_t *table)
UNIV_INTERN void dict_mem_table_add_col (dict_table_t *table, mem_heap_t *heap, const char *name, ulint mtype, ulint prtype, ulint len)

Variables

static unsigned i
static unsigned const char * to

Detailed Description

Data dictionary memory object creation

Created 1/8/1996 Heikki Tuuri

Definition in file dict0mem.cc.

Macro Definition Documentation

#define DICT_HEAP_SIZE   100

initial memory heap size when creating a table or index object

Definition at line 48 of file dict0mem.cc.

Function Documentation

UNIV_INTERN void dict_mem_table_add_col ( dict_table_t table,
mem_heap_t heap,
const char *  name,
ulint  mtype,
ulint  prtype,
ulint  len 
)

Adds a column definition to a table.

Parameters
tablein: table
heapin: temporary memory heap, or NULL
namein: column name, or NULL
mtypein: main datatype
prtypein: precise type
lenin: precision

Definition at line 206 of file dict0mem.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN dict_table_t* dict_mem_table_create ( const char *  name,
ulint  space,
ulint  n_cols,
ulint  flags,
ulint  flags2 
)

Creates a table memory object.

Returns
own: table object
Parameters
namein: table name
spacein: space where the clustered index of the table is placed
n_colsin: number of columns
flagsin: table flags
flags2in: table flags2

Definition at line 61 of file dict0mem.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

UNIV_INTERN void dict_mem_table_free ( dict_table_t table)

Free a table memory object.

Parameters
tablein: table

Definition at line 130 of file dict0mem.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

unsigned i

< in/out: table in: column offset corresponding to s

Definition at line 252 of file dict0mem.cc.

unsigned const char* to

in: new column name

Definition at line 252 of file dict0mem.cc.