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; }
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;
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*);
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; }
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); }
69
bool get_date(type::Time <ime, uint32_t) const;
70
bool get_time(type::Time <ime) const;
69
bool get_date(DRIZZLE_TIME *ltime, uint32_t);
70
bool get_time(DRIZZLE_TIME *ltime);