~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Brian Aker
  • Date: 2010-10-06 18:16:00 UTC
  • mto: (1818.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 1819.
  • Revision ID: brian@tangent.org-20101006181600-q7zuzw31zlq030ra
Convert sql_string to use size_t (this should clean up ICC warnings).

Show diffs side-by-side

added added

removed removed

Lines of Context:
643
643
 
644
644
    if (sql_field->sql_type == DRIZZLE_TYPE_ENUM)
645
645
    {
646
 
      uint32_t dummy;
 
646
      size_t dummy;
647
647
      const CHARSET_INFO * const cs= sql_field->charset;
648
648
      TYPELIB *interval= sql_field->interval;
649
649
 
676
676
          if (String::needs_conversion(tmp->length(), tmp->charset(),
677
677
                                       cs, &dummy))
678
678
          {
679
 
            uint32_t cnv_errs;
 
679
            size_t cnv_errs;
680
680
            conv.copy(tmp->ptr(), tmp->length(), tmp->charset(), cs, &cnv_errs);
681
681
            interval->type_names[i]= session->mem_root->strmake_root(conv.ptr(), conv.length());
682
682
            interval->type_lengths[i]= conv.length();
718
718
            }
719
719
          }
720
720
        }
721
 
        calculate_interval_lengths(cs, interval, &field_length, &dummy);
 
721
        uint32_t new_dummy;
 
722
        calculate_interval_lengths(cs, interval, &field_length, &new_dummy);
722
723
        sql_field->length= field_length;
723
724
      }
724
725
      set_if_smaller(sql_field->length, (uint32_t)MAX_FIELD_WIDTH-1);