mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.6 into 10.8
This commit is contained in:
@@ -4187,6 +4187,7 @@ bool setup_sj_materialization_part1(JOIN_TAB *sjm_tab)
|
||||
}
|
||||
|
||||
sjm->sjm_table_param.field_count= subq_select->item_list.elements;
|
||||
sjm->sjm_table_param.func_count= sjm->sjm_table_param.field_count;
|
||||
sjm->sjm_table_param.force_not_null_cols= TRUE;
|
||||
|
||||
if (!(sjm->table= create_tmp_table(thd, &sjm->sjm_table_param,
|
||||
@@ -5802,14 +5803,14 @@ TABLE *create_dummy_tmp_table(THD *thd)
|
||||
DBUG_ENTER("create_dummy_tmp_table");
|
||||
TABLE *table;
|
||||
TMP_TABLE_PARAM sjm_table_param;
|
||||
sjm_table_param.init();
|
||||
sjm_table_param.field_count= 1;
|
||||
List<Item> sjm_table_cols;
|
||||
const LEX_CSTRING dummy_name= { STRING_WITH_LEN("dummy") };
|
||||
Item *column_item= new (thd->mem_root) Item_int(thd, 1);
|
||||
if (!column_item)
|
||||
DBUG_RETURN(NULL);
|
||||
|
||||
sjm_table_param.init();
|
||||
sjm_table_param.field_count= sjm_table_param.func_count= 1;
|
||||
sjm_table_cols.push_back(column_item, thd->mem_root);
|
||||
if (!(table= create_tmp_table(thd, &sjm_table_param,
|
||||
sjm_table_cols, (ORDER*) 0,
|
||||
|
Reference in New Issue
Block a user