@@ -611,7 +611,6 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
611611 table->s = share;
612612 init_tmp_table_share (thd, share, " " , 0 , tmpname, tmpname);
613613 share->blob_field = blob_field;
614- share->blob_ptr_size = portable_sizeof_char_ptr;
615614 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
616615 share->table_charset = param->table_charset ;
617616 share->primary_key = MAX_KEY; // Indicate no primary key
@@ -1273,7 +1272,6 @@ TABLE *create_duplicate_weedout_tmp_table(THD *thd,
12731272 table->s = share;
12741273 init_tmp_table_share (thd, share, " " , 0 , tmpname, tmpname);
12751274 share->blob_field = blob_field;
1276- share->blob_ptr_size = portable_sizeof_char_ptr;
12771275 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
12781276 share->table_charset = NULL ;
12791277 share->primary_key = MAX_KEY; // Indicate no primary key
@@ -1493,7 +1491,6 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Create_field> &field_list)
14931491 table->temp_pool_slot = MY_BIT_NONE;
14941492 share->blob_field = blob_field;
14951493 share->fields = field_count;
1496- share->blob_ptr_size = portable_sizeof_char_ptr;
14971494 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
14981495 setup_tmp_table_column_bitmaps (table, bitmaps);
14991496
@@ -1690,7 +1687,8 @@ bool create_myisam_tmp_table(TABLE *table, KEY *keyinfo,
16901687 seg->type =
16911688 ((keyinfo->key_part [i].key_type & FIELDFLAG_BINARY) ?
16921689 HA_KEYTYPE_VARBINARY2 : HA_KEYTYPE_VARTEXT2);
1693- seg->bit_start = (uint8)(field->pack_length () - share->blob_ptr_size );
1690+ seg->bit_start = (uint8)(field->pack_length () -
1691+ portable_sizeof_char_ptr);
16941692 seg->flag = HA_BLOB_PART;
16951693 seg->length =0 ; // Whole blob in unique constraint
16961694 }
0 commit comments