MySQL  8.0.18
Source Code Documentation
Query_dumpvar Class Referencefinal

#include <query_result.h>

Inheritance diagram for Query_dumpvar:
Query_result_interceptor Query_result

Public Member Functions

 Query_dumpvar ()
 
bool prepare (THD *thd, List< Item > &list, SELECT_LEX_UNIT *u) override
 Perform preparation specific to the query expression or DML statement. More...
 
bool send_data (THD *thd, List< Item > &items) override
 
bool send_eof (THD *thd) override
 
bool check_simple_select () const override
 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...
 
void cleanup (THD *) override
 Cleanup after this execution. More...
 
- Public Member Functions inherited from Query_result_interceptor
 Query_result_interceptor ()
 
uint field_count (List< Item > &) const override
 
bool send_result_set_metadata (THD *, List< Item > &, uint) override
 
bool is_interceptor () const override 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 ()
 
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 void send_error (THD *, uint errcode, const char *err)
 
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...
 
void begin_dataset ()
 
virtual const ha_rowsrow_count () const
 

Public Attributes

List< PT_select_varvar_list
 
- 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...
 

Private Attributes

ha_rows row_count
 

Additional Inherited Members

- Protected Attributes inherited from Query_result
SELECT_LEX_UNITunit
 

Constructor & Destructor Documentation

◆ Query_dumpvar()

Query_dumpvar::Query_dumpvar ( )
inline

Member Function Documentation

◆ check_simple_select()

bool Query_dumpvar::check_simple_select ( ) const
overridevirtual

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.

Return values
falsesuccess
trueerror, an error message is set

Reimplemented from Query_result.

◆ cleanup()

void Query_dumpvar::cleanup ( THD )
inlineoverridevirtual

Cleanup after this execution.

Completes the execution and resets object before next execution of a prepared statement/stored procedure.

Reimplemented from Query_result.

◆ prepare()

bool Query_dumpvar::prepare ( THD ,
List< Item > &  ,
SELECT_LEX_UNIT 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 Query_dumpvar::send_data ( THD thd,
List< Item > &  items 
)
overridevirtual

Implements Query_result.

◆ send_eof()

bool Query_dumpvar::send_eof ( THD thd)
overridevirtual

Implements Query_result.

Member Data Documentation

◆ row_count

ha_rows Query_dumpvar::row_count
private

◆ var_list

List<PT_select_var> Query_dumpvar::var_list

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