#include <item_subselect.h>
|
void | set_row (const mem_root_deque< Item * > &item_list, Item_cache **row, bool never_empty) |
| Makes storage for the output values for a scalar or row subquery and calculates their data and column types and their nullability. More...
|
|
◆ SubqueryWithResult()
◆ change_query_result()
change query result object of subquery.
- Parameters
-
thd | thread handle |
si | new subselect Item |
res | new Query_result object |
- Return values
-
◆ cleanup()
void SubqueryWithResult::cleanup |
( |
| ) |
|
Cleanup subquery after complete query execution, free all resources.
◆ exec()
bool SubqueryWithResult::exec |
( |
THD * |
thd | ) |
|
Execute the subquery.
SYNOPSIS exec()
DESCRIPTION Execute the subquery. The result of execution is subquery value that is captured by previously set up Query_result-based 'sink'.
RETURN false - OK true - Execution error.
◆ field_type()
◆ fix_length_and_dec()
void SubqueryWithResult::fix_length_and_dec |
( |
Item_cache ** |
row | ) |
|
◆ get_item()
- Returns
- the internal Item. Defined only in debug builds, because should be used only for debug asserts.
◆ may_be_null()
bool SubqueryWithResult::may_be_null |
( |
| ) |
const |
|
inline |
◆ prepare()
bool SubqueryWithResult::prepare |
( |
THD * |
thd | ) |
|
Prepare the query expression underlying the subquery.
This function is called from Item_subselect::fix_fields. If the subquery is transformed with an Item_in_optimizer object, this function may be called twice, hence we need the check on 'is_prepared()' at the start, to avoid redoing the preparation.
- Returns
- false if success, true if error
◆ print()
◆ set_row()
Makes storage for the output values for a scalar or row subquery and calculates their data and column types and their nullability.
- Parameters
-
item_list | list of items in the select list of the subquery |
row | cache objects to hold the result row of the subquery |
possibly_empty | true if the subquery could return empty result |
◆ single_query_block()
Query_block * SubqueryWithResult::single_query_block |
( |
| ) |
const |
◆ type()
◆ subselect_hash_sj_engine
◆ item
◆ maybe_null
bool SubqueryWithResult::maybe_null |
|
private |
True if at least one of the columns returned by the subquery may be null, or if a single-row subquery may return zero rows.
◆ res_field_type
◆ res_type
◆ result
◆ unit
The documentation for this class was generated from the following files: