mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
MDEV#7383: engine-independent-stats column_stats has limited values for max/min values
Patch from Daniel Black:
- Change the charset of mysql.column_stats.{min_value, max_value} from
utf8_bin varchar to varbinary
- Adjust the code that saves/reads the data accordingly.
- Also provide upgrade statement in mysql_system_tables_fix.sql
This commit is contained in:
parent
1694d81399
commit
9f862ce026
5 changed files with 46 additions and 9 deletions
|
|
@ -701,3 +701,19 @@ drop table t1, t2;
|
|||
|
||||
set use_stat_tables=@save_use_stat_tables;
|
||||
|
||||
--echo #
|
||||
--echo # Bug MDEV-7383: min/max value for a column not utf8 compatible
|
||||
--echo #
|
||||
|
||||
create table t1 (a varchar(100)) engine=MyISAM;
|
||||
insert into t1 values(unhex('D879626AF872675F73E662F8'));
|
||||
analyze table t1 persistent for all;
|
||||
show warnings;
|
||||
|
||||
select db_name, table_name, column_name,
|
||||
HEX(min_value), HEX(max_value),
|
||||
nulls_ratio, avg_frequency,
|
||||
hist_size, hist_type, HEX(histogram)
|
||||
FROM mysql.column_stats;
|
||||
|
||||
drop table t1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue