~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_utility.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 06:47:29 UTC
  • Revision ID: brian@tangent.org-20081006064729-2i9mhjkzyvow9xsm
RemoveĀ uint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
  This function returns the field size in raw bytes based on the type
27
27
  and the encoded field data from the master's raw data.
28
28
*/
29
 
uint32_t table_def::calc_field_size(uint col, unsigned char *master_data) const
 
29
uint32_t table_def::calc_field_size(uint32_t col, unsigned char *master_data) const
30
30
{
31
31
  uint32_t length= 0;
32
32
 
102
102
  /*
103
103
    We only check the initial columns for the tables.
104
104
  */
105
 
  uint const cols_to_check= cmin(table->s->fields, size());
 
105
  uint32_t const cols_to_check= cmin(table->s->fields, size());
106
106
  int error= 0;
107
107
  Relay_log_info const *rli= const_cast<Relay_log_info*>(rli_arg);
108
108
 
109
109
  TABLE_SHARE const *const tsh= table->s;
110
110
 
111
 
  for (uint col= 0 ; col < cols_to_check ; ++col)
 
111
  for (uint32_t col= 0 ; col < cols_to_check ; ++col)
112
112
  {
113
113
    if (table->field[col]->type() != type(col))
114
114
    {