mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge next-mr -> next-4284.
This commit is contained in:
@ -10631,6 +10631,7 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Create_field> &field_list)
|
||||
share->blob_field= blob_field;
|
||||
share->fields= field_count;
|
||||
share->blob_ptr_size= portable_sizeof_char_ptr;
|
||||
share->db_low_byte_first=1; // True for HEAP and MyISAM
|
||||
setup_tmp_table_column_bitmaps(table, bitmaps);
|
||||
|
||||
/* Create all fields and calculate the total length of record */
|
||||
@ -10695,6 +10696,18 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Create_field> &field_list)
|
||||
null_bit= 1;
|
||||
}
|
||||
}
|
||||
if (cur_field->type() == MYSQL_TYPE_BIT &&
|
||||
cur_field->key_type() == HA_KEYTYPE_BIT)
|
||||
{
|
||||
/* This is a Field_bit since key_type is HA_KEYTYPE_BIT */
|
||||
static_cast<Field_bit*>(cur_field)->set_bit_ptr(null_pos, null_bit);
|
||||
null_bit+= cur_field->field_length & 7;
|
||||
if (null_bit > 7)
|
||||
{
|
||||
null_pos++;
|
||||
null_bit-= 8;
|
||||
}
|
||||
}
|
||||
cur_field->reset();
|
||||
|
||||
field_pos+= cur_field->pack_length();
|
||||
|
Reference in New Issue
Block a user