mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge branch '10.0' into 10.1
This commit is contained in:
10
sql/table.cc
10
sql/table.cc
@@ -5426,6 +5426,8 @@ Item *create_view_field(THD *thd, TABLE_LIST *view, Item **field_ref,
|
||||
Item_direct_view_ref(thd, &view->view->select_lex.context,
|
||||
field_ref, view->alias,
|
||||
name, view));
|
||||
if (!item)
|
||||
return NULL;
|
||||
/*
|
||||
Force creation of nullable item for the result tmp table for outer joined
|
||||
views/derived tables.
|
||||
@@ -7356,7 +7358,15 @@ int TABLE_LIST::fetch_number_of_rows()
|
||||
{
|
||||
int error= 0;
|
||||
if (jtbm_subselect)
|
||||
{
|
||||
if (jtbm_subselect->is_jtbm_merged)
|
||||
{
|
||||
table->file->stats.records= jtbm_subselect->jtbm_record_count;
|
||||
set_if_bigger(table->file->stats.records, 2);
|
||||
table->used_stat_records= table->file->stats.records;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
if (is_materialized_derived() && !fill_me)
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user