~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/long.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
** long int
30
30
****************************************************************************/
31
31
 
32
 
int Field_long::store(const char *from,uint len, const CHARSET_INFO * const cs)
 
32
int Field_long::store(const char *from,uint32_t len, const CHARSET_INFO * const cs)
33
33
{
34
34
  long store_tmp;
35
35
  int error;
182
182
                            String *val_ptr __attribute__((unused)))
183
183
{
184
184
  const CHARSET_INFO * const cs= &my_charset_bin;
185
 
  uint length;
186
 
  uint mlength=cmax(field_length+1,12*cs->mbmaxlen);
 
185
  uint32_t length;
 
186
  uint32_t mlength=cmax(field_length+1,12*cs->mbmaxlen);
187
187
  val_buffer->alloc(mlength);
188
188
  char *to=(char*) val_buffer->ptr();
189
189
  int32_t j;
229
229
  return (a < b) ? -1 : (a > b) ? 1 : 0;
230
230
}
231
231
 
232
 
void Field_long::sort_string(unsigned char *to,uint length __attribute__((unused)))
 
232
void Field_long::sort_string(unsigned char *to,uint32_t length __attribute__((unused)))
233
233
{
234
234
#ifdef WORDS_BIGENDIAN
235
235
  if (!table->s->db_low_byte_first)