~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/uuid.h

  • Committer: Brian Aker
  • Date: 2011-01-05 16:29:27 UTC
  • mto: (2060.2.1 clean)
  • mto: This revision was merged to the branch mainline in revision 2063.
  • Revision ID: brian@tangent.org-20110105162927-fi2gnmlz35qcagik
Add additional gperf for non-reserved SQL keywords.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/field.h>
25
25
#include <string>
26
26
 
27
 
#include <drizzled/type/uuid.h>
 
27
#include "drizzled/field/uuid_st.h"
28
28
 
29
29
namespace drizzled
30
30
{
45
45
  enum_field_types type() const { return DRIZZLE_TYPE_UUID; }
46
46
  enum ha_base_keytype key_type() const { return HA_KEYTYPE_BINARY; }
47
47
  bool zero_pack() const { return 0; }
48
 
  int  reset(void) { memset(ptr, 0, type::Uuid::LENGTH); return 0; }
49
 
  uint32_t pack_length() const { return type::Uuid::LENGTH; }
50
 
  uint32_t key_length() const { return type::Uuid::LENGTH; }
 
48
  int  reset(void) { memset(ptr, 0, uuid_st::LENGTH); return 0; }
 
49
  uint32_t pack_length() const { return uuid_st::LENGTH; }
 
50
  uint32_t key_length() const { return uuid_st::LENGTH; }
51
51
 
52
52
  int store(const char *to, uint32_t length, const CHARSET_INFO * const charset);
53
53
  int store(int64_t nr, bool unsigned_val);
54
 
  double val_real() const;
55
 
  int64_t val_int() const;
56
 
  String *val_str(String*,String *) const;
 
54
  double val_real();
 
55
  int64_t val_int();
 
56
  String *val_str(String*,String *);
57
57
  void sql_type(drizzled::String&) const;
58
 
  int store_decimal(const drizzled::type::Decimal*);
 
58
  int store_decimal(const drizzled::my_decimal*);
59
59
 
60
60
  Item_result result_type () const { return STRING_RESULT; }
61
61
  int cmp(const unsigned char*, const unsigned char*);
62
62
  void sort_string(unsigned char*, uint32_t);
63
 
  uint32_t max_display_length() { return type::Uuid::DISPLAY_LENGTH; }
 
63
  uint32_t max_display_length() { return uuid_st::DISPLAY_LENGTH; }
64
64
 
65
65
  int  store(double ) { return 0; }
66
66
  inline String *val_str(String *str) { return val_str(str, str); }
67
67
  uint32_t size_of() const { return sizeof(*this); }
68
68
 
69
 
  bool get_date(type::Time &ltime, uint32_t) const;
70
 
  bool get_time(type::Time &ltime) const;
 
69
  bool get_date(DRIZZLE_TIME *ltime, uint32_t);
 
70
  bool get_time(DRIZZLE_TIME *ltime);
71
71
 
72
72
#ifdef NOT_YET
73
73
  void generate();
76
76
 
77
77
  static size_t max_string_length()
78
78
  {
79
 
    return type::Uuid::LENGTH;
 
79
    return uuid_st::LENGTH;
80
80
  }
81
81
};
82
82