My Project
Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
store_key Class Reference

#include <sql_select.h>

Inheritance diagram for store_key:
Sql_alloc store_key_field store_key_item store_key_const_item

List of all members.

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

Detailed Description

class to copying an field/item to a key struct


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).

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines