Drizzled Public API Documentation

drizzled::Key_part_spec Class Reference
Inheritance diagram for drizzled::Key_part_spec:
drizzled::memory::SqlAlloc

List of all members.

Public Member Functions

 Key_part_spec (str_ref name, uint32_t len)
bool operator== (const Key_part_spec &other) const
Key_part_specclone (memory::Root *mem_root) const

Static Public Member Functions

static void * operator new (size_t size)
static void * operator new (size_t size, Root &root)
static void * operator new (size_t size, Root *root)
static void * operator new[] (size_t size)
static void * operator new[] (size_t size, Root &root)
static void * operator new[] (size_t size, Root *root)
static void operator delete (void *)
static void operator delete (void *, Root &)
static void operator delete (void *, Root *)
static void operator delete[] (void *)
static void operator delete[] (void *, Root &)
static void operator delete[] (void *, Root *)

Public Attributes

str_ref field_name
uint32_t length

Detailed Description

Definition at line 28 of file key_part_spec.h.


Member Function Documentation

Key_part_spec* drizzled::Key_part_spec::clone ( memory::Root mem_root) const
inline

Construct a copy of this Key_part_spec. field_name is copied by-pointer as it is known to never change. At the same time 'length' may be reset in mysql_prepare_create_table, and this is why we supply it with a copy.

Returns:
If out of memory, 0 is returned and an error is set in Session.

Definition at line 47 of file key_part_spec.h.


The documentation for this class was generated from the following files: