73 virtual bool fetch(ulong num_rows) = 0;
77 const std::nothrow_t & = std::nothrow)
noexcept {
80 static void operator delete(
void *, size_t) {}
81 static void operator delete(
82 void *,
MEM_ROOT *,
const std::nothrow_t &)
noexcept {
Definition: sql_class.h:343
Definition: query_result.h:54
Server_side_cursor – an interface for materialized implementation of cursors.
Definition: sql_cursor.h:51
Query_arena m_arena
Definition: sql_cursor.h:62
virtual bool fetch(ulong num_rows)=0
Query_result * m_result
Row destination used for fetch.
Definition: sql_cursor.h:64
MEM_ROOT mem_root
For allocation of Handler objects for the temporary table.
Definition: sql_cursor.h:59
virtual bool is_open() const =0
virtual ~Server_side_cursor()
Definition: sql_cursor.h:75
virtual bool open(THD *thd)=0
Server_side_cursor(Query_result *result_arg)
Definition: sql_cursor.h:67
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
static MEM_ROOT mem_root
Definition: client_plugin.cc:110
PSI_memory_key key_memory_TABLE
Definition: psi_memory_key.cc:81
bool mysql_open_cursor(THD *thd, Query_result *result, Server_side_cursor **res)
Attempt to open a materialized cursor.
Definition: sql_cursor.cc:183
Query_result * new_cursor_result(MEM_ROOT *mem_root, Query_result *result)
Definition: sql_cursor.cc:139
The MEM_ROOT is a simple arena, where allocations are carved out of larger blocks.
Definition: my_alloc.h:83
void Clear()
Deallocate all the RAM used.
Definition: my_alloc.cc:171
void * Alloc(size_t length)
Allocate memory.
Definition: my_alloc.h:145