mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge main 5.3 into 5.3-mwl89.
This commit is contained in:
@ -2994,14 +2994,28 @@ create_result_table(THD *thd_arg, List<Item> *column_types,
|
||||
if (!stat)
|
||||
return TRUE;
|
||||
|
||||
cleanup();
|
||||
|
||||
reset();
|
||||
table->file->extra(HA_EXTRA_WRITE_CACHE);
|
||||
table->file->extra(HA_EXTRA_IGNORE_DUP_KEY);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
void select_materialize_with_stats::reset()
|
||||
{
|
||||
memset(col_stat, 0, table->s->fields * sizeof(Column_statistics));
|
||||
max_nulls_in_row= 0;
|
||||
count_rows= 0;
|
||||
}
|
||||
|
||||
|
||||
void select_materialize_with_stats::cleanup()
|
||||
{
|
||||
reset();
|
||||
select_union::cleanup();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Override select_union::send_data to analyze each row for NULLs and to
|
||||
update null_statistics before sending data to the client.
|
||||
|
Reference in New Issue
Block a user