~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/long.cc

Giant merge.

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/long.h"
 
25
#include <drizzled/field/long.h>
26
26
 
27
27
/****************************************************************************
28
28
** long int
198
198
  else
199
199
    length=cs->cset->long10_to_str(cs,to,mlength,-10,(long) j);
200
200
  val_buffer->length(length);
201
 
  if (zerofill)
202
 
    prepend_zeros(val_buffer);
 
201
 
203
202
  return val_buffer;
204
203
}
205
204
 
259
258
void Field_long::sql_type(String &res) const
260
259
{
261
260
  CHARSET_INFO *cs=res.charset();
262
 
  res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(),
263
 
                          "int(%d)",(int) field_length));
264
 
  add_zerofill_and_unsigned(res);
 
261
  res.length(cs->cset->snprintf(cs,(char*) res.ptr(),res.alloced_length(), "int"));
 
262
  add_unsigned(res);
265
263
}
266
264