~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int32.cc

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
 ** Int32
42
42
 ****************************************************************************/
43
43
 
44
 
  int Int32::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
 
44
  int Int32::store(const char *from,uint32_t len, const charset_info_st * const cs)
45
45
  {
46
46
    long store_tmp;
47
47
    int error;
145
145
 
146
146
  String *Int32::val_str(String *val_buffer, String *) const
147
147
  {
148
 
    const CHARSET_INFO * const cs= &my_charset_bin;
 
148
    const charset_info_st * const cs= &my_charset_bin;
149
149
    uint32_t length;
150
150
    uint32_t mlength= max(field_length+1,12*cs->mbmaxlen);
151
151
    val_buffer->alloc(mlength);
194
194
 
195
195
  void Int32::sql_type(String &res) const
196
196
  {
197
 
    const CHARSET_INFO * const cs=res.charset();
 
197
    const charset_info_st * const cs=res.charset();
198
198
    res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(), "int"));
199
199
  }
200
200