MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
store_key Class Reference

#include <sql_select.h>

Inheritance diagram for store_key:
Collaboration diagram for store_key:

Public Types

enum  store_key_result { STORE_KEY_OK, STORE_KEY_FATAL, STORE_KEY_CONV }

Public Member Functions

 store_key (THD *thd, Field *field_arg, uchar *ptr, uchar *null, uint length)
virtual const char * name () const =0
enum store_key_result copy ()
 sets ignore truncation warnings mode and calls the real copy method

Public Attributes

bool null_key

Protected Member Functions

virtual enum store_key_result copy_inner ()=0

Protected Attributes

Fieldto_field
uchar * null_ptr
uchar err

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

class to copying an field/item to a key struct

Definition at line 1132 of file sql_select.h.

Member Function Documentation

enum store_key_result store_key::copy ( )
inline

sets ignore truncation warnings mode and calls the real copy method

this function makes sure truncation warnings when preparing the key buffers don't end up as errors (because of an enclosing INSERT/UPDATE).

Definition at line 1165 of file sql_select.h.

Here is the caller graph for this function:

virtual const char* store_key::name ( ) const
pure virtual

Not actually needed

Implemented in store_key_const_item, store_key_item, and store_key_field.


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