diff options
author | konstantin@mysql.com <> | 2005-03-13 23:53:30 +0300 |
---|---|---|
committer | konstantin@mysql.com <> | 2005-03-13 23:53:30 +0300 |
commit | 22915b3ad5cacf5796e94e351c792c6a9da141d8 (patch) | |
tree | 0d36ee96373c0aa687e3defac8a5609b97c3ea4c /sql/field.cc | |
parent | a95f09e228919cdd9e6ded344d925e95225ecf14 (diff) | |
parent | 983c75f05e6d6c009a90d856f6ffb591df9999e1 (diff) | |
download | mariadb-git-22915b3ad5cacf5796e94e351c792c6a9da141d8.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/media/sda1/mysql/mysql-5.0-926
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sql/field.cc b/sql/field.cc index a73c24d8f0d..26575d97f69 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -7162,6 +7162,24 @@ void create_field::create_length_to_internal_length(void) } +void create_field::init_for_tmp_table(enum_field_types sql_type_arg, + uint32 length_arg, uint32 decimals, + bool maybe_null, bool is_unsigned) +{ + field_name= ""; + sql_type= sql_type_arg; + length= length_arg;; + unireg_check= Field::NONE; + interval= 0; + charset= &my_charset_bin; + geom_type= Field::GEOM_GEOMETRY; + pack_flag= (FIELDFLAG_NUMBER | + ((decimals & FIELDFLAG_MAX_DEC) << FIELDFLAG_DEC_SHIFT) | + (maybe_null ? FIELDFLAG_MAYBE_NULL : 0) | + (is_unsigned ? 0 : FIELDFLAG_DECIMAL)); +} + + enum_field_types get_blob_type_from_length(ulong length) { enum_field_types type; |