MySQL  8.0.27
Source Code Documentation
sp_cursor::Query_fetch_into_spvars Class Reference

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

Inheritance diagram for sp_cursor::Query_fetch_into_spvars:
Query_result_interceptor Query_result

Public Member Functions

 Query_fetch_into_spvars ()
 
uint get_field_count ()
 
void set_spvar_list (List< sp_variable > *vars)
 
bool send_eof (THD *) override
 
bool send_data (THD *thd, const mem_root_deque< Item * > &items) override
 
bool prepare (THD *thd, const mem_root_deque< Item * > &list, Query_expression *u) override
 Perform preparation specific to the query expression or DML statement. More...
 
- Public Member Functions inherited from Query_result_interceptor
 Query_result_interceptor ()
 
uint field_count (const mem_root_deque< Item * > &) const override
 
bool send_result_set_metadata (THD *, const mem_root_deque< Item * > &, uint) override
 
bool is_interceptor () const final
 Checks if this Query_result intercepts and transforms the result set. More...
 
- Public Member Functions inherited from Query_result
 Query_result ()
 
virtual ~Query_result ()=default
 
virtual bool needs_file_privilege () const
 
virtual bool change_query_result (THD *, Query_result *)
 Change wrapped Query_result. More...
 
virtual bool need_explain_interceptor () const
 
virtual bool optimize ()
 Optimize the result processing of a query expression, applicable to data change operation (not simple select queries). More...
 
virtual bool start_execution (THD *)
 Prepare for execution of the query expression or DML statement. More...
 
virtual bool create_table_for_query_block (THD *)
 Create table, only needed to support CREATE TABLE ... SELECT. More...
 
virtual void send_error (THD *, uint errcode, const char *err)
 
virtual bool check_simple_query_block () const
 Check if this query returns a result set and therefore is allowed in cursors and set an error message if it is not the case. More...
 
virtual void abort_result_set (THD *)
 
virtual bool reset ()
 Cleanup after one execution of the unit, to be ready for a next execution inside the same statement. More...
 
virtual void cleanup (THD *)
 Cleanup after this execution. More...
 
void begin_dataset ()
 
virtual const ha_rowsrow_count () const
 
virtual bool immediate_update (TABLE_LIST *t[[maybe_unused]]) const
 If this Query_result performs modifications to tables: tells if it modifies the given table's row as it's read (a.k.a. More...
 

Private Attributes

List< sp_variable > * spvar_list
 
uint field_count
 

Additional Inherited Members

- Public Attributes inherited from Query_result
ha_rows estimated_rowcount
 Number of records estimated in this result. More...
 
double estimated_cost
 Cost to execute the subquery which produces this result. More...
 
- Protected Attributes inherited from Query_result
Query_expressionunit
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Query_fetch_into_spvars()

sp_cursor::Query_fetch_into_spvars::Query_fetch_into_spvars ( )
inline

Member Function Documentation

◆ get_field_count()

uint sp_cursor::Query_fetch_into_spvars::get_field_count ( )
inline

◆ prepare()

bool sp_cursor::Query_fetch_into_spvars::prepare ( THD ,
const mem_root_deque< Item * > &  ,
Query_expression u 
)
overridevirtual

Perform preparation specific to the query expression or DML statement.

Returns
false if success, true if error

Reimplemented from Query_result.

◆ send_data()

bool sp_cursor::Query_fetch_into_spvars::send_data ( THD thd,
const mem_root_deque< Item * > &  items 
)
overridevirtual

Implements Query_result.

◆ send_eof()

bool sp_cursor::Query_fetch_into_spvars::send_eof ( THD )
inlineoverridevirtual

Implements Query_result.

◆ set_spvar_list()

void sp_cursor::Query_fetch_into_spvars::set_spvar_list ( List< sp_variable > *  vars)
inline

Member Data Documentation

◆ field_count

uint sp_cursor::Query_fetch_into_spvars::field_count
private

◆ spvar_list

List<sp_variable>* sp_cursor::Query_fetch_into_spvars::spvar_list
private

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