~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/enum.cc

  • Committer: Brian Aker
  • Date: 2009-01-25 02:52:05 UTC
  • mfrom: (801.1.4 testable)
  • Revision ID: brian@gir.tangent.org-20090125025205-zlahg6u6z0w95v64
Merge from Myself

Show diffs side-by-side

added added

removed removed

Lines of Context:
135
135
 
136
136
 
137
137
int Field_enum::store(int64_t nr,
138
 
                      bool unsigned_val __attribute__((unused)))
 
138
                      bool )
139
139
{
140
140
  int error= 0;
141
141
  if ((uint64_t) nr > typelib->count || nr == 0)
222
222
}
223
223
 
224
224
 
225
 
String *Field_enum::val_str(String *val_buffer __attribute__((unused)),
 
225
String *Field_enum::val_str(String *,
226
226
                            String *val_ptr)
227
227
{
228
228
  uint32_t tmp=(uint) Field_enum::val_int();
246
246
  return (a < b) ? -1 : (a > b) ? 1 : 0;
247
247
}
248
248
 
249
 
void Field_enum::sort_string(unsigned char *to,uint32_t length __attribute__((unused)))
 
249
void Field_enum::sort_string(unsigned char *to,uint32_t )
250
250
{
251
251
  uint64_t value=Field_enum::val_int();
252
252
  to+=packlength-1;