mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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().
This commit is contained in:
@ -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); }
|
||||
|
Reference in New Issue
Block a user