diff options
author | unknown <kaa@kaamos.(none)> | 2008-03-12 13:56:50 +0300 |
---|---|---|
committer | unknown <kaa@kaamos.(none)> | 2008-03-12 13:56:50 +0300 |
commit | 6c2f9bf5e1b0bff6d87fea1c25c8041f9a306d7c (patch) | |
tree | 73ce1aa3fd98930ec2e0f242f84978e640bc92b0 /sql/table.h | |
parent | 9fcf16a0558f739c6259da55acbf655c7fff62dc (diff) | |
parent | f9bbd7533c551d8ed2f23d251ef9abca49a055fd (diff) | |
download | mariadb-git-6c2f9bf5e1b0bff6d87fea1c25c8041f9a306d7c.tar.gz |
Merge ssh://bk-internal.mysql.com//home/bk/mysql-5.1-opt
into kaamos.(none):/data/src/opt/mysql-5.1-opt
sql/sql_show.cc:
Auto merged
sql/table.h:
Auto merged
Diffstat (limited to 'sql/table.h')
-rw-r--r-- | sql/table.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h index 941964ee24e..d448485a117 100644 --- a/sql/table.h +++ b/sql/table.h @@ -759,12 +759,36 @@ enum enum_schema_tables typedef struct st_field_info { + /** + This is used as column name. + */ const char* field_name; + /** + For string-type columns, this is the maximum number of + characters. Otherwise, it is the 'display-length' for the column. + */ uint field_length; + /** + 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. + */ enum enum_field_types field_type; int value; + /** + This is used to set column attributes. By default, columns are @c NOT + @c NULL and @c SIGNED, and you can deviate from the default + by setting the appopriate flags. You can use either one of the flags + @c MY_I_S_MAYBE_NULL and @cMY_I_S_UNSIGNED or + combine them using the bitwise or operator @c |. Both flags are + defined in table.h. + */ uint field_flags; // Field atributes(maybe_null, signed, unsigned etc.) const char* old_name; + /** + This should be one of @c SKIP_OPEN_TABLE, + @c OPEN_FRM_ONLY or @c OPEN_FULL_TABLE. + */ uint open_method; } ST_FIELD_INFO; |