~stewart/drizzle/remove-unused-row-type-in-table-message

« back to all changes in this revision

Viewing changes to drizzled/field/num.cc

  • Committer: Stewart Smith
  • Date: 2010-07-20 16:35:49 UTC
  • mfrom: (1638.1.28 drizzle)
  • Revision ID: stewart@flamingspork.com-20100720163549-zgcsmroyt0njr92d
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
    char buff[128];
75
75
    String tmp(buff, (uint32_t) sizeof(buff), system_charset_info);
76
76
    tmp.copy(str, length, system_charset_info);
77
 
    push_warning_printf(table->in_use, DRIZZLE_ERROR::WARN_LEVEL_WARN,
 
77
    push_warning_printf(getTable()->in_use, DRIZZLE_ERROR::WARN_LEVEL_WARN,
78
78
                        ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
79
79
                        ER(ER_TRUNCATED_WRONG_VALUE_FOR_FIELD),
80
80
                        "integer", tmp.c_ptr(), field_name,
81
 
                        (uint32_t) table->in_use->row_count);
 
81
                        (uint32_t) getTable()->in_use->row_count);
82
82
    return 1;
83
83
  }
84
84
  /* Test if we have garbage at the end of the given string. */
132
132
    goto out_of_range;
133
133
  }
134
134
 
135
 
  if (table->in_use->count_cuted_fields &&
 
135
  if (getTable()->in_use->count_cuted_fields &&
136
136
      check_int(cs, from, len, end, error))
137
137
    return 1;
138
138
  return 0;