~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/enum.h

  • Committer: Monty Taylor
  • Date: 2008-10-27 23:19:48 UTC
  • mto: (520.4.12 merge-innodb-plugin)
  • mto: This revision was merged to the branch mainline in revision 563.
  • Revision ID: monty@inaugust.com-20081027231948-3kl6ss04plbakqcr
Split some more things out of common_includes.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef DRIZZLE_SERVER_FIELD_ENUM
22
22
#define DRIZZLE_SERVER_FIELD_ENUM
23
23
 
24
 
#include <drizzled/field/str.h>
25
 
 
26
24
class Field_enum :public Field_str {
27
25
protected:
28
26
  uint32_t packlength;
62
60
  { return (field_metadata & 0x00ff); }
63
61
  uint32_t row_pack_length() { return pack_length(); }
64
62
  virtual bool zero_pack() const { return 0; }
65
 
  bool optimize_range(uint32_t, uint32_t)
 
63
  bool optimize_range(uint32_t idx __attribute__((unused)),
 
64
                      uint32_t part __attribute__((unused)))
66
65
  { return 0; }
67
66
  bool eq_def(Field *field);
68
67
  bool has_charset(void) const { return true; }