mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MWL#90: Subqueries: Inside-out execution for non-semijoin materialized
subqueries that are AND-parts of the WHERE - First code (needs cleanup).
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#define NO_MORE_RECORDS_IN_BUFFER (uint)(-1)
|
||||
|
||||
int do_jtbm_materialization_if_needed(JOIN_TAB *tab);
|
||||
|
||||
/*****************************************************************************
|
||||
* Join cache module
|
||||
@@ -1778,6 +1779,10 @@ enum_nested_loop_state JOIN_CACHE_BNL::join_matching_records(bool skip_last)
|
||||
}
|
||||
|
||||
/* Start retrieving all records of the joined table */
|
||||
|
||||
//jtbm-todo: error handling!
|
||||
do_jtbm_materialization_if_needed(join_tab);
|
||||
|
||||
if ((error= join_init_read_record(join_tab)))
|
||||
{
|
||||
rc= error < 0 ? NESTED_LOOP_NO_MORE_ROWS: NESTED_LOOP_ERROR;
|
||||
|
Reference in New Issue
Block a user