MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
st_field_info Struct Reference

Public Attributes

const char * field_name
uint field_length
enum enum_field_types field_type
int value
uint field_flags
const char * old_name
uint open_method

Detailed Description

Definition at line 1321 of file table.h.

Member Data Documentation

uint st_field_info::field_flags

This is used to set column attributes. By default, columns are NOT NULL and SIGNED, and you can deviate from the default by setting the appopriate flags. You can use either one of the flags MY_I_S_MAYBE_NULL and or combine them using the bitwise or operator |. Both flags are defined in table.h.

Definition at line 1347 of file table.h.

uint st_field_info::field_length

For string-type columns, this is the maximum number of characters. Otherwise, it is the 'display-length' for the column.

Definition at line 1331 of file table.h.

const char* st_field_info::field_name

This is used as column name.

Definition at line 1326 of file table.h.

enum enum_field_types st_field_info::field_type

This denotes data type for the column. For the most part, there seems to be one entry in the enum for each SQL data type, although there seem to be a number of additional entries in the enum.

Definition at line 1337 of file table.h.

uint st_field_info::open_method

This should be one of SKIP_OPEN_TABLE, OPEN_FRM_ONLY or OPEN_FULL_TABLE.

Definition at line 1353 of file table.h.


The documentation for this struct was generated from the following file: