~mkindahl/drizzle/remove-mem-casts

« back to all changes in this revision

Viewing changes to server/sql_select.cc

  • Committer: Brian Aker
  • Date: 2008-07-23 00:11:39 UTC
  • Revision ID: brian@tangent.org-20080723001139-967ewfngqqotwb6e
Removed final uint dead types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10673
10673
    break;
10674
10674
  case DECIMAL_RESULT:
10675
10675
  {
10676
 
    uint8 dec= item->decimals;
10677
 
    uint8 intg= ((Item_decimal *) item)->decimal_precision() - dec;
 
10676
    uint8_t dec= item->decimals;
 
10677
    uint8_t intg= ((Item_decimal *) item)->decimal_precision() - dec;
10678
10678
    uint32_t len= item->max_length;
10679
10679
 
10680
10680
    /*
11463
11463
      key_part_info->null_bit=0;
11464
11464
      key_part_info->field=  field;
11465
11465
      key_part_info->offset= field->offset(table->record[0]);
11466
 
      key_part_info->length= (uint16) field->key_length();
11467
 
      key_part_info->type=   (uint8) field->key_type();
 
11466
      key_part_info->length= (uint16_t) field->key_length();
 
11467
      key_part_info->type=   (uint8_t) field->key_type();
11468
11468
      key_part_info->key_type =
11469
11469
        ((ha_base_keytype) key_part_info->type == HA_KEYTYPE_TEXT ||
11470
11470
         (ha_base_keytype) key_part_info->type == HA_KEYTYPE_VARTEXT1 ||
11532
11532
    table->key_info=keyinfo;
11533
11533
    keyinfo->key_part=key_part_info;
11534
11534
    keyinfo->flags=HA_NOSAME | HA_NULL_ARE_EQUAL;
11535
 
    keyinfo->key_length=(uint16) reclength;
 
11535
    keyinfo->key_length=(uint16_t) reclength;
11536
11536
    keyinfo->name= (char*) "distinct_key";
11537
11537
    keyinfo->algorithm= HA_KEY_ALG_UNDEF;
11538
11538
    keyinfo->rec_per_key=0;
11568
11568
      key_part_info->null_bit=0;
11569
11569
      key_part_info->field=    *reg_field;
11570
11570
      key_part_info->offset=   (*reg_field)->offset(table->record[0]);
11571
 
      key_part_info->length=   (uint16) (*reg_field)->pack_length();
 
11571
      key_part_info->length=   (uint16_t) (*reg_field)->pack_length();
11572
11572
      /* TODO:
11573
11573
        The below method of computing the key format length of the
11574
11574
        key part is a copy/paste from opt_range.cc, and table.cc.
11585
11585
          (*reg_field)->real_type() == MYSQL_TYPE_VARCHAR)
11586
11586
        key_part_info->store_length+= HA_KEY_BLOB_LENGTH;
11587
11587
 
11588
 
      key_part_info->type=     (uint8) (*reg_field)->key_type();
 
11588
      key_part_info->type=     (uint8_t) (*reg_field)->key_type();
11589
11589
      key_part_info->key_type =
11590
11590
        ((ha_base_keytype) key_part_info->type == HA_KEYTYPE_TEXT ||
11591
11591
         (ha_base_keytype) key_part_info->type == HA_KEYTYPE_VARTEXT1 ||
11898
11898
      key_part_info->null_bit=0;
11899
11899
      key_part_info->field=  field;
11900
11900
      key_part_info->offset= field->offset(table->record[0]);
11901
 
      key_part_info->length= (uint16) field->key_length();
11902
 
      key_part_info->type=   (uint8) field->key_type();
 
11901
      key_part_info->length= (uint16_t) field->key_length();
 
11902
      key_part_info->type=   (uint8_t) field->key_type();
11903
11903
      key_part_info->key_type = FIELDFLAG_BINARY;
11904
11904
      if (!using_unique_constraint)
11905
11905
      {
12171
12171
        seg->type=
12172
12172
        ((keyinfo->key_part[i].key_type & FIELDFLAG_BINARY) ?
12173
12173
         HA_KEYTYPE_VARBINARY2 : HA_KEYTYPE_VARTEXT2);
12174
 
        seg->bit_start= (uint8)(field->pack_length() - share->blob_ptr_size);
 
12174
        seg->bit_start= (uint8_t)(field->pack_length() - share->blob_ptr_size);
12175
12175
        seg->flag= HA_BLOB_PART;
12176
12176
        seg->length=0;                  // Whole blob in unique constraint
12177
12177
      }
18130
18130
       sl= sl->next_select())
18131
18131
  {
18132
18132
    // drop UNCACHEABLE_EXPLAIN, because it is for internal usage only
18133
 
    uint8 uncacheable= (sl->uncacheable & ~UNCACHEABLE_EXPLAIN);
 
18133
    uint8_t uncacheable= (sl->uncacheable & ~UNCACHEABLE_EXPLAIN);
18134
18134
    sl->type= (((&thd->lex->select_lex)==sl)?
18135
18135
               (sl->first_inner_unit() || sl->next_select() ? 
18136
18136
                "PRIMARY" : "SIMPLE"):