@@ -614,7 +614,6 @@ create_tmp_table(THD *thd,TMP_TABLE_PARAM *param,List<Item> &fields,
614614 table->s = share;
615615 init_tmp_table_share (thd, share, " " , 0 , tmpname, tmpname);
616616 share->blob_field = blob_field;
617- share->blob_ptr_size = portable_sizeof_char_ptr;
618617 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
619618 share->table_charset = param->table_charset ;
620619 share->primary_key = MAX_KEY; // Indicate no primary key
@@ -1276,7 +1275,6 @@ TABLE *create_duplicate_weedout_tmp_table(THD *thd,
12761275 table->s = share;
12771276 init_tmp_table_share (thd, share, " " , 0 , tmpname, tmpname);
12781277 share->blob_field = blob_field;
1279- share->blob_ptr_size = portable_sizeof_char_ptr;
12801278 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
12811279 share->table_charset = NULL ;
12821280 share->primary_key = MAX_KEY; // Indicate no primary key
@@ -1496,7 +1494,6 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Create_field> &field_list)
14961494 table->temp_pool_slot = MY_BIT_NONE;
14971495 share->blob_field = blob_field;
14981496 share->fields = field_count;
1499- share->blob_ptr_size = portable_sizeof_char_ptr;
15001497 share->db_low_byte_first =1 ; // True for HEAP and MyISAM
15011498 setup_tmp_table_column_bitmaps (table, bitmaps);
15021499
@@ -1698,7 +1695,8 @@ bool create_myisam_tmp_table(TABLE *table, KEY *keyinfo,
16981695 seg->type =
16991696 ((keyinfo->key_part [i].key_type & FIELDFLAG_BINARY) ?
17001697 HA_KEYTYPE_VARBINARY2 : HA_KEYTYPE_VARTEXT2);
1701- seg->bit_start = (uint8)(field->pack_length () - share->blob_ptr_size );
1698+ seg->bit_start = (uint8)(field->pack_length () -
1699+ portable_sizeof_char_ptr);
17021700 seg->flag = HA_BLOB_PART;
17031701 seg->length =0 ; // Whole blob in unique constraint
17041702 }
0 commit comments