mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-31449: Assertion s->table->opt_range_condition_rows <= s->found_records
Fix a typo in make_join_statistics(): when updating statistics for derived table, set s->table->... not "table->..."
This commit is contained in:
@ -5575,7 +5575,7 @@ make_join_statistics(JOIN *join, List<TABLE_LIST> &tables_list,
|
||||
get_delayed_table_estimates(s->table, &s->records, &s->read_time,
|
||||
&s->startup_cost);
|
||||
s->found_records= s->records;
|
||||
table->opt_range_condition_rows=s->records;
|
||||
s->table->opt_range_condition_rows=s->records;
|
||||
}
|
||||
else
|
||||
s->scan_time();
|
||||
|
Reference in New Issue
Block a user