MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Key_part_spec Class Reference
Inheritance diagram for Key_part_spec:
Collaboration diagram for Key_part_spec:

Public Member Functions

 Key_part_spec (const LEX_STRING &name, uint len)
 Key_part_spec (const char *name, const size_t name_len, uint len)
bool operator== (const Key_part_spec &other) const
Key_part_specclone (MEM_ROOT *mem_root) const

Public Attributes

LEX_STRING field_name
uint length

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
static void * operator new (size_t size) throw ()
static void * operator new[] (size_t size) throw ()
static void * operator new[] (size_t size, MEM_ROOT *mem_root) throw ()
static void * operator new (size_t size, MEM_ROOT *mem_root) throw ()
static void operator delete (void *ptr, size_t size)
static void operator delete (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, MEM_ROOT *mem_root)
static void operator delete[] (void *ptr, size_t size)

Detailed Description

Definition at line 199 of file sql_class.h.

Member Function Documentation

Key_part_spec* Key_part_spec::clone ( MEM_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 THD.

Definition at line 219 of file sql_class.h.


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