MySQL 8.0.39
Source Code Documentation
sp_cursor Class Reference

#include <sp_rcontext.h>

Classes

class  Query_fetch_into_spvars
 An interceptor of cursor result set used to implement FETCH <cname> INTO <varlist>. More...
 

Public Member Functions

 sp_cursor (sp_instr_cpush *i)
 
virtual ~sp_cursor ()
 
bool open (THD *thd)
 Open an SP cursor. More...
 
bool close ()
 
bool is_open () const
 
bool fetch (List< sp_variable > *vars)
 
sp_instr_cpushget_push_instr ()
 

Private Member Functions

void destroy ()
 

Private Attributes

Query_fetch_into_spvars m_result
 
Server_side_cursorm_server_side_cursor
 
sp_instr_cpushm_push_instr
 

Constructor & Destructor Documentation

◆ sp_cursor()

sp_cursor::sp_cursor ( sp_instr_cpush i)
inlineexplicit

◆ ~sp_cursor()

virtual sp_cursor::~sp_cursor ( )
inlinevirtual

Member Function Documentation

◆ close()

bool sp_cursor::close ( void  )

◆ destroy()

void sp_cursor::destroy ( )
private

◆ fetch()

bool sp_cursor::fetch ( List< sp_variable > *  vars)

◆ get_push_instr()

sp_instr_cpush * sp_cursor::get_push_instr ( )
inline

◆ is_open()

bool sp_cursor::is_open ( ) const
inline

◆ open()

bool sp_cursor::open ( THD thd)

Open an SP cursor.

Parameters
thdThread context
Returns
Error status

Member Data Documentation

◆ m_push_instr

sp_instr_cpush* sp_cursor::m_push_instr
private

◆ m_result

Query_fetch_into_spvars sp_cursor::m_result
private

◆ m_server_side_cursor

Server_side_cursor* sp_cursor::m_server_side_cursor
private

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