|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <stored_key.h>
Public Types | |
| enum | store_key_result { STORE_KEY_OK , STORE_KEY_FATAL , STORE_KEY_CONV } |
Public Member Functions | |
| StoredKey (Session *session, Field *field_arg, unsigned char *ptr, unsigned char *null, uint32_t 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 | |
| Field * | to_field |
| unsigned char * | null_ptr |
| unsigned char | err |
Additional Inherited Members | |
| Static Public Member Functions inherited from drizzled::memory::SqlAlloc | |
| static void * | operator new (size_t size) |
| 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, Root *root) |
| static void * | operator new[] (size_t size, Root *root) |
| static void | operator delete (void *) |
| static void | operator delete[] (void *) |
| static void | operator delete (void *, Root &) |
| static void | operator delete[] (void *, Root &) |
| static void | operator delete (void *, Root *) |
| static void | operator delete[] (void *, Root *) |
class to store an field/item as a key struct
Definition at line 29 of file stored_key.h.
| enum drizzled::StoredKey::store_key_result |
Definition at line 33 of file stored_key.h.
| drizzled::StoredKey::StoredKey | ( | Session * | session, |
| Field * | field_arg, | ||
| unsigned char * | ptr, | ||
| unsigned char * | null, | ||
| uint32_t | length ) |
Definition at line 29 of file stored_key.cc.
|
inlinevirtual |
Definition at line 53 of file stored_key.h.
| StoredKey::store_key_result drizzled::StoredKey::copy | ( | ) |
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 62 of file stored_key.cc.
|
pure virtual |
Not actually needed
Implemented in drizzled::store_key_const_item, drizzled::store_key_field, and drizzled::store_key_item.
|
protected |
Definition at line 43 of file stored_key.h.
| bool drizzled::StoredKey::null_key |
If true, the value of the key has a null part
Definition at line 32 of file stored_key.h.
|
protected |
Definition at line 42 of file stored_key.h.
|
protected |
Definition at line 41 of file stored_key.h.