mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.1' into 10.2
This commit is contained in:
@ -345,12 +345,17 @@ private:
|
||||
public:
|
||||
|
||||
Histogram histogram;
|
||||
|
||||
uint32 no_values_provided_bitmap()
|
||||
{
|
||||
return
|
||||
((1 << (COLUMN_STAT_HISTOGRAM-COLUMN_STAT_COLUMN_NAME))-1) <<
|
||||
(COLUMN_STAT_COLUMN_NAME+1);
|
||||
}
|
||||
|
||||
void set_all_nulls()
|
||||
{
|
||||
column_stat_nulls=
|
||||
((1 << (COLUMN_STAT_HISTOGRAM-COLUMN_STAT_COLUMN_NAME))-1) <<
|
||||
(COLUMN_STAT_COLUMN_NAME+1);
|
||||
column_stat_nulls= no_values_provided_bitmap();
|
||||
}
|
||||
|
||||
void set_not_null(uint stat_field_no)
|
||||
@ -396,8 +401,22 @@ public:
|
||||
bool min_max_values_are_provided()
|
||||
{
|
||||
return !is_null(COLUMN_STAT_MIN_VALUE) &&
|
||||
!is_null(COLUMN_STAT_MIN_VALUE);
|
||||
}
|
||||
!is_null(COLUMN_STAT_MAX_VALUE);
|
||||
}
|
||||
/*
|
||||
This function checks whether the values for the fields of the statistical
|
||||
tables that were NULL by DEFAULT for a column have changed or not.
|
||||
|
||||
@retval
|
||||
TRUE: Statistics are not present for a column
|
||||
FALSE: Statisitics are present for a column
|
||||
*/
|
||||
bool no_stat_values_provided()
|
||||
{
|
||||
if (column_stat_nulls == no_values_provided_bitmap())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user