#include <sql_cursor.h>
Inheritance diagram for Server_side_cursor:


Public Member Functions | |
| Server_side_cursor (MEM_ROOT *mem_root_arg, select_result *result_arg) | |
| virtual bool | is_open () const =0 |
| virtual int | open (JOIN *top_level_join)=0 |
| virtual void | fetch (ulong num_rows)=0 |
| virtual void | close ()=0 |
| virtual | ~Server_side_cursor () |
Static Public Member Functions | |
| static void | operator delete (void *ptr, size_t size) |
Protected Attributes | |
| select_result * | result |
Definition at line 36 of file sql_cursor.h.
| Server_side_cursor::Server_side_cursor | ( | MEM_ROOT * | mem_root_arg, | |
| select_result * | result_arg | |||
| ) | [inline] |
Definition at line 42 of file sql_cursor.h.
00043 :Query_arena(mem_root_arg, INITIALIZED), result(result_arg) 00044 {}
| Server_side_cursor::~Server_side_cursor | ( | ) | [virtual] |
| virtual void Server_side_cursor::close | ( | ) | [pure virtual] |
Implemented in Sensitive_cursor, and Materialized_cursor.
| virtual void Server_side_cursor::fetch | ( | ulong | num_rows | ) | [pure virtual] |
Implemented in Sensitive_cursor, and Materialized_cursor.
Referenced by sp_cursor::fetch(), and mysql_stmt_fetch().
Here is the caller graph for this function:

| virtual bool Server_side_cursor::is_open | ( | ) | const [pure virtual] |
Implemented in Sensitive_cursor, and Materialized_cursor.
Referenced by sp_cursor::fetch(), and mysql_stmt_fetch().
Here is the caller graph for this function:

| virtual int Server_side_cursor::open | ( | JOIN * | top_level_join | ) | [pure virtual] |
Implemented in Sensitive_cursor.
| void Server_side_cursor::operator delete | ( | void * | ptr, | |
| size_t | size | |||
| ) | [static] |
Reimplemented from Sql_alloc.
Definition at line 249 of file sql_cursor.cc.
References DBUG_ENTER, DBUG_VOID_RETURN, free_root(), MYF, and TRASH.
00250 { 00251 Server_side_cursor *cursor= (Server_side_cursor*) ptr; 00252 MEM_ROOT own_root= *cursor->mem_root; 00253 00254 DBUG_ENTER("Server_side_cursor::operator delete"); 00255 TRASH(ptr, size); 00256 /* 00257 If this cursor has never been opened mem_root is empty. Otherwise 00258 mem_root points to the memory the cursor object was allocated in. 00259 In this case it's important to call free_root last, and free a copy 00260 instead of *mem_root to avoid writing into freed memory. 00261 */ 00262 free_root(&own_root, MYF(0)); 00263 DBUG_VOID_RETURN; 00264 }
Here is the call graph for this function:

select_result* Server_side_cursor::result [protected] |
Definition at line 40 of file sql_cursor.h.
Referenced by Materialized_cursor::fetch(), Sensitive_cursor::fetch(), Materialized_cursor::open(), and Sensitive_cursor::open().
1.4.7

