diff options
author | unknown <ramil@mysql.com> | 2005-04-12 23:12:00 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-04-12 23:12:00 +0500 |
commit | 923b76f8d1632d1214cb3bae34d0927cb6c2d14c (patch) | |
tree | 51c51256cbbc77befebaf0212b43ee38de208c27 /sql/field.h | |
parent | 87e742c18718127ee79b822656c214fedc35a09a (diff) | |
download | mariadb-git-923b76f8d1632d1214cb3bae34d0927cb6c2d14c.tar.gz |
Bit type: code clean-up.
sql/field.h:
Field_bit_as_char::size_of() added - we use it in the ::new_key_field().
sql/sql_table.cc:
We have to set pack_flag for bit fields in the mysql_prepare_table()
as we use it in the create_length_to_internal_length().
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/field.h b/sql/field.h index fd0937b2f4c..6a1a7af194e 100644 --- a/sql/field.h +++ b/sql/field.h @@ -1321,6 +1321,7 @@ public: enum utype unireg_check_arg, const char *field_name_arg, struct st_table *table_arg); enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; } + uint size_of() const { return sizeof(*this); } int store(const char *to, uint length, CHARSET_INFO *charset); int store(double nr) { return Field_bit::store(nr); } int store(longlong nr) { return Field_bit::store(nr); } |