~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_select.cc

  • Committer: Brian Aker
  • Date: 2008-07-22 18:31:32 UTC
  • Revision ID: brian@tangent.org-20080722183132-ne2ntl7g7mdf2eez
uint32 -> uin32_t

Show diffs side-by-side

added added

removed removed

Lines of Context:
9392
9392
    }
9393
9393
    if (cond->type() == Item::COND_ITEM &&
9394
9394
        !((Item_cond*)cond)->argument_list()->elements)
9395
 
      cond= new Item_int((int32)cond->val_bool());
 
9395
      cond= new Item_int((int32_t)cond->val_bool());
9396
9396
 
9397
9397
  }
9398
9398
  else if (cond->type() == Item::FUNC_ITEM && 
10675
10675
  {
10676
10676
    uint8 dec= item->decimals;
10677
10677
    uint8 intg= ((Item_decimal *) item)->decimal_precision() - dec;
10678
 
    uint32 len= item->max_length;
 
10678
    uint32_t len= item->max_length;
10679
10679
 
10680
10680
    /*
10681
10681
      Trying to put too many digits overall in a DECIMAL(prec,dec)
11548
11548
      key_part_info->offset=hidden_null_pack_length;
11549
11549
      key_part_info->length=null_pack_length;
11550
11550
      key_part_info->field= new Field_string(table->record[0],
11551
 
                                             (uint32) key_part_info->length,
 
11551
                                             (uint32_t) key_part_info->length,
11552
11552
                                             (uchar*) 0,
11553
11553
                                             (uint) 0,
11554
11554
                                             Field::NONE,
17661
17661
  */
17662
17662
  if (message)
17663
17663
  {
17664
 
    item_list.push_back(new Item_int((int32)
 
17664
    item_list.push_back(new Item_int((int32_t)
17665
17665
                                     join->select_lex->select_number));
17666
17666
    item_list.push_back(new Item_string(join->select_lex->type,
17667
17667
                                        strlen(join->select_lex->type), cs));
17765
17765
      quick_type= -1;
17766
17766
      item_list.empty();
17767
17767
      /* id */
17768
 
      item_list.push_back(new Item_uint((uint32)
 
17768
      item_list.push_back(new Item_uint((uint32_t)
17769
17769
                                       join->select_lex->select_number));
17770
17770
      /* select_type */
17771
17771
      item_list.push_back(new Item_string(join->select_lex->type,
17950
17950
          extra.append(STRING_WITH_LEN("; Full scan on NULL key"));
17951
17951
        /* Skip initial "; "*/
17952
17952
        const char *str= extra.ptr();
17953
 
        uint32 len= extra.length();
 
17953
        uint32_t len= extra.length();
17954
17954
        if (len)
17955
17955
        {
17956
17956
          str += 2;
18095
18095
 
18096
18096
        /* Skip initial "; "*/
18097
18097
        const char *str= extra.ptr();
18098
 
        uint32 len= extra.length();
 
18098
        uint32_t len= extra.length();
18099
18099
        if (len)
18100
18100
        {
18101
18101
          str += 2;