My Project
|
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 |
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.
For string-type columns, this is the maximum number of characters. Otherwise, it is the 'display-length' for the column.
const char* st_field_info::field_name |
This is used as column name.
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.
This should be one of SKIP_OPEN_TABLE
, OPEN_FRM_ONLY
or OPEN_FULL_TABLE
.