#include <query_result.h>
◆ Query_result()
Query_result::Query_result |
( |
| ) |
|
|
inline |
◆ ~Query_result()
virtual Query_result::~Query_result |
( |
| ) |
|
|
virtualdefault |
◆ abort_result_set()
virtual void Query_result::abort_result_set |
( |
THD * |
| ) |
|
|
inlinevirtual |
◆ change_query_result()
Change wrapped Query_result.
Replace the wrapped query result object with new_result and call prepare() on new_result.
This base class implementation doesn't wrap other Query_results.
- Return values
-
Reimplemented in Query_result_union_direct.
◆ check_supports_cursor()
virtual bool Query_result::check_supports_cursor |
( |
| ) |
const |
|
inlinevirtual |
◆ cleanup()
virtual void Query_result::cleanup |
( |
| ) |
|
|
inlinevirtual |
Cleanup after this execution.
Completes the execution and resets object before next execution of a prepared statement/stored procedure.
Reimplemented in Query_result_max_min_subquery, Query_result_explain, Query_result_send, Query_result_to_file, Query_result_export, Query_dumpvar, Query_result_materialize, Query_result_do, Query_result_insert, Query_result_union_direct, Query_result_union, and Query_result_update.
◆ create_table_for_query_block()
virtual bool Query_result::create_table_for_query_block |
( |
THD * |
| ) |
|
|
inlinevirtual |
Create table, only needed to support CREATE TABLE ... SELECT.
Reimplemented in Query_result_create.
◆ cursor()
◆ field_count()
◆ need_explain_interceptor()
virtual bool Query_result::need_explain_interceptor |
( |
| ) |
const |
|
inlinevirtual |
◆ needs_file_privilege()
virtual bool Query_result::needs_file_privilege |
( |
| ) |
const |
|
inlinevirtual |
◆ prepare()
Perform preparation specific to the query expression or DML statement.
- Returns
- false if success, true if error
Reimplemented in Query_result_explain, Query_result_export, Query_result_dump, Query_dumpvar, sp_cursor::Query_fetch_into_spvars, Query_result_materialize, Query_result_insert, Query_result_create, Query_result_union, and Query_result_update.
◆ reset()
virtual bool Query_result::reset |
( |
void |
| ) |
|
|
inlinevirtual |
Cleanup after one execution of the unit, to be ready for a next execution inside the same statement.
- Returns
- true if error
Reimplemented in Query_result_union.
◆ send_data()
Implemented in anonymous_namespace{sql_delete.cc}::Query_result_delete, Query_result_union_direct, Query_result_scalar_subquery, Query_result_max_min_subquery, Query_result_exists_subquery, Query_result_null, Query_result_explain_into_var, Query_result_send, Query_result_export, Query_result_dump, Query_dumpvar, sp_cursor::Query_fetch_into_spvars, Query_result_do, Query_result_insert, anonymous_namespace{sql_prepare.cc}::Query_fetch_protocol_binary, Query_result_union, Query_result_update, and Query_result_subquery.
◆ send_eof()
virtual bool Query_result::send_eof |
( |
THD * |
thd | ) |
|
|
pure virtual |
Implemented in Query_result_null, Query_result_subquery, sp_cursor::Query_fetch_into_spvars, Query_result_union_direct, Query_result_explain_into_var, Query_result_send, Query_result_to_file, Query_dumpvar, anonymous_namespace{sql_delete.cc}::Query_result_delete, Query_result_do, Query_result_insert, Query_result_create, anonymous_namespace{sql_prepare.cc}::Query_fetch_protocol_binary, Query_result_union, and Query_result_update.
◆ send_result_set_metadata()
virtual bool Query_result::send_result_set_metadata |
( |
THD * |
thd, |
|
|
const mem_root_deque< Item * > & |
list, |
|
|
uint |
flags |
|
) |
| |
|
pure virtual |
◆ set_limit()
virtual void Query_result::set_limit |
( |
ha_rows |
| ) |
|
|
inlinevirtual |
Only overridden (and non-empty) for Query_result_union, q.v.
Reimplemented in Query_result_union.
◆ start_execution()
virtual bool Query_result::start_execution |
( |
THD * |
| ) |
|
|
inlinevirtual |
Prepare for execution of the query expression or DML statement.
Generally, this will have an implementation only for outer-most Query_block objects, such as data change statements (for preparation of the target table(s)) or dump statements (for preparation of target file).
- Returns
- false if success, true if error
Reimplemented in Query_result_explain, Query_result_export, Query_result_dump, Query_result_materialize, Query_result_insert, Query_result_create, Query_result_union_direct, and Query_result_update.
◆ use_protocol_adapter()
virtual bool Query_result::use_protocol_adapter |
( |
| ) |
const |
|
inlinevirtual |
◆ use_protocol_wrapper()
virtual bool Query_result::use_protocol_wrapper |
( |
| ) |
const |
|
inlinevirtual |
◆ estimated_cost
double Query_result::estimated_cost |
Cost to execute the subquery which produces this result.
Valid only for materialized derived tables/views.
◆ estimated_rowcount
ha_rows Query_result::estimated_rowcount |
Number of records estimated in this result.
Valid only for materialized derived tables/views.
◆ unit
The documentation for this class was generated from the following files: