~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/int64_t.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:
29
29
 Field type int64_t int (8 bytes)
30
30
****************************************************************************/
31
31
 
32
 
int Field_int64_t::store(const char *from,uint len, const CHARSET_INFO * const cs)
 
32
int Field_int64_t::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
33
33
{
34
34
  int error= 0;
35
35
  char *end;
177
177
                                String *val_ptr __attribute__((unused)))
178
178
{
179
179
  const CHARSET_INFO * const cs= &my_charset_bin;
180
 
  uint length;
181
 
  uint mlength=cmax(field_length+1,22*cs->mbmaxlen);
 
180
  uint32_t length;
 
181
  uint32_t mlength=cmax(field_length+1,22*cs->mbmaxlen);
182
182
  val_buffer->alloc(mlength);
183
183
  char *to=(char*) val_buffer->ptr();
184
184
  int64_t j;
224
224
  return (a < b) ? -1 : (a > b) ? 1 : 0;
225
225
}
226
226
 
227
 
void Field_int64_t::sort_string(unsigned char *to,uint length __attribute__((unused)))
 
227
void Field_int64_t::sort_string(unsigned char *to,uint32_t length __attribute__((unused)))
228
228
{
229
229
#ifdef WORDS_BIGENDIAN
230
230
  if (!table->s->db_low_byte_first)
273
273
 
274
274
unsigned char *
275
275
Field_real::pack(unsigned char *to, const unsigned char *from,
276
 
                 uint max_length, bool low_byte_first)
 
276
                 uint32_t max_length, bool low_byte_first)
277
277
{
278
278
  assert(max_length >= pack_length());
279
279
#ifdef WORDS_BIGENDIAN
291
291
 
292
292
const unsigned char *
293
293
Field_real::unpack(unsigned char *to, const unsigned char *from,
294
 
                   uint param_data, bool low_byte_first)
 
294
                   uint32_t param_data, bool low_byte_first)
295
295
{
296
296
#ifdef WORDS_BIGENDIAN
297
297
  if (low_byte_first != table->s->db_low_byte_first)