~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int64_t.cc

  • Committer: Stewart Smith
  • Date: 2008-08-02 07:12:36 UTC
  • mfrom: (258 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080802071236-kbcozl5zm23j6mkn
merge from mainline

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#pragma implementation                          // gcc: Class implementation
23
23
#endif
24
24
 
25
 
#include "drizzle/server/field/int64_t.h"
 
25
#include <drizzled/field/int64_t.h>
26
26
 
27
27
/****************************************************************************
28
28
 Field type int64_t int (8 bytes)
191
191
  length=(uint) (cs->cset->int64_t10_to_str)(cs,to,mlength,
192
192
                                        unsigned_flag ? 10 : -10, j);
193
193
  val_buffer->length(length);
194
 
  if (zerofill)
195
 
    prepend_zeros(val_buffer);
 
194
 
196
195
  return val_buffer;
197
196
}
198
197
 
262
261
void Field_int64_t::sql_type(String &res) const
263
262
{
264
263
  CHARSET_INFO *cs=res.charset();
265
 
  res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(),
266
 
                          "bigint(%d)",(int) field_length));
267
 
  add_zerofill_and_unsigned(res);
 
264
  res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(), "bigint"));
 
265
  add_unsigned(res);
268
266
}
269
267
 
270
268