MySQL 5.6.14 Source Code Document
|
#include <sql_prepare.h>
Public Member Functions | |
operator List< Ed_row > & () | |
unsigned int | size () const |
Ed_result_set (List< Ed_row > *rows_arg, size_t column_count, MEM_ROOT *mem_root_arg) | |
~Ed_result_set () | |
size_t | get_field_count () const |
Static Public Member Functions | |
static void | operator delete (void *ptr, size_t size) throw () |
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, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, size_t size) |
Friends | |
class | Ed_connection |
Ed_result_set – a container with result set rows.
Definition at line 108 of file sql_prepare.h.
Ed_result_set::Ed_result_set | ( | List< Ed_row > * | rows_arg, |
size_t | column_count_arg, | ||
MEM_ROOT * | mem_root_arg | ||
) |
Initialize an instance of Ed_result_set.
Instances of the class, as well as all result set rows, are always allocated in the memory root passed over as the second argument. In the constructor, we take over ownership of the memory root. It will be freed when the class is destroyed.
sic: Ed_result_est is not designed to be allocated on stack.
Definition at line 4121 of file sql_prepare.cc.
|
inline |
We don't call member destructors, they all are POD types.
Definition at line 118 of file sql_prepare.h.
|
static |
Use operator delete to free memory of Ed_result_set. Accessing members of a class after the class has been destroyed is a violation of the C++ standard but is commonly used in the server code.
Reimplemented from Sql_alloc.
Definition at line 4096 of file sql_prepare.cc.