MySQL  8.0.19
Source Code Documentation
Blob_mem_storage Class Reference

Class is used as a BLOB field value storage for intermediate GROUP_CONCAT results. More...

#include <table.h>

Public Member Functions

 Blob_mem_storage ()
 
 ~Blob_mem_storage ()
 
void reset ()
 
char * store (const char *from, size_t length)
 Fuction creates duplicate of 'from' string in 'storage' MEM_ROOT. More...
 
void set_truncated_value (bool is_truncated_value)
 
bool is_truncated_value () const
 

Private Attributes

MEM_ROOT storage
 
bool truncated_value
 Sign that some values were cut during saving into the storage. More...
 

Detailed Description

Class is used as a BLOB field value storage for intermediate GROUP_CONCAT results.

Used only for GROUP_CONCAT with DISTINCT or ORDER BY options.

Constructor & Destructor Documentation

◆ Blob_mem_storage()

Blob_mem_storage::Blob_mem_storage ( )

◆ ~Blob_mem_storage()

Blob_mem_storage::~Blob_mem_storage ( )

Member Function Documentation

◆ is_truncated_value()

bool Blob_mem_storage::is_truncated_value ( ) const
inline

◆ reset()

void Blob_mem_storage::reset ( )
inline

◆ set_truncated_value()

void Blob_mem_storage::set_truncated_value ( bool  is_truncated_value)
inline

◆ store()

char* Blob_mem_storage::store ( const char *  from,
size_t  length 
)
inline

Fuction creates duplicate of 'from' string in 'storage' MEM_ROOT.

Parameters
fromstring to copy
lengthstring length
Return values
Pointerto the copied string.
0if an error occurred.

Member Data Documentation

◆ storage

MEM_ROOT Blob_mem_storage::storage
private

◆ truncated_value

bool Blob_mem_storage::truncated_value
private

Sign that some values were cut during saving into the storage.


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