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

#include <sql_prepare.h>

Inheritance diagram for Ed_result_set:
Collaboration diagram for Ed_result_set:

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

Detailed Description

Ed_result_set – a container with result set rows.

Todo:
Implement support for result set metadata and automatic type conversion.

Definition at line 108 of file sql_prepare.h.

Constructor & Destructor Documentation

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.

Ed_result_set::~Ed_result_set ( )
inline

We don't call member destructors, they all are POD types.

Definition at line 118 of file sql_prepare.h.

Member Function Documentation

void Ed_result_set::operator delete ( void *  ptr,
size_t  size 
) throw ()
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.


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