mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
BIT field woes
* get_rec_bits() was always reading two bytes, even if the bit field contained only of one byte * In various places the code used field->pack_length() bytes starting from field->ptr, while it should be field->pack_length_in_rec() * Field_bit::key_cmp and Field_bit::cmp_max passed field_length as an argument to memcmp(), but field_length is the number of bits!
This commit is contained in:
@@ -394,7 +394,7 @@ void JOIN_CACHE::create_flag_fields()
|
||||
TABLE *table= tab->table;
|
||||
|
||||
/* Create a field for the null bitmap from table if needed */
|
||||
if (tab->used_null_fields || tab->used_uneven_bit_fields)
|
||||
if (tab->used_null_fields || tab->used_uneven_bit_fields)
|
||||
length+= add_flag_field_to_join_cache(table->null_flags,
|
||||
table->s->null_bytes,
|
||||
©);
|
||||
|
||||
Reference in New Issue
Block a user