mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge branch '10.2' into 10.3
This commit is contained in:
@ -1058,7 +1058,9 @@ public:
|
||||
else
|
||||
{
|
||||
table_field->collected_stats->min_value->val_str(&val);
|
||||
stat_field->store(val.ptr(), val.length(), &my_charset_bin);
|
||||
size_t length= Well_formed_prefix(val.charset(), val.ptr(),
|
||||
MY_MIN(val.length(), stat_field->field_length)).length();
|
||||
stat_field->store(val.ptr(), length, &my_charset_bin);
|
||||
}
|
||||
break;
|
||||
case COLUMN_STAT_MAX_VALUE:
|
||||
@ -1067,7 +1069,9 @@ public:
|
||||
else
|
||||
{
|
||||
table_field->collected_stats->max_value->val_str(&val);
|
||||
stat_field->store(val.ptr(), val.length(), &my_charset_bin);
|
||||
size_t length= Well_formed_prefix(val.charset(), val.ptr(),
|
||||
MY_MIN(val.length(), stat_field->field_length)).length();
|
||||
stat_field->store(val.ptr(), length, &my_charset_bin);
|
||||
}
|
||||
break;
|
||||
case COLUMN_STAT_NULLS_RATIO:
|
||||
@ -3053,7 +3057,7 @@ int read_statistics_for_table(THD *thd, TABLE *table, TABLE_LIST *stat_tables)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
table->stats_is_read= TRUE;
|
||||
|
||||
DBUG_RETURN(0);
|
||||
|
Reference in New Issue
Block a user