1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-26710: Histogram field in mysql.column_stats is too short

Change it to LONGBLOB.
Also, update_statistics_for_table() should not "swallow" an error
from open_stat_tables.
This commit is contained in:
Sergei Petrunia
2021-10-01 23:24:05 +03:00
parent 5d66eeb3a1
commit 943b8fccf9
10 changed files with 13 additions and 13 deletions

View File

@@ -190,7 +190,7 @@ TABLE_FIELD_TYPE column_stat_fields[COLUMN_STAT_N_FIELDS] =
},
{
{ STRING_WITH_LEN("histogram") },
{ STRING_WITH_LEN("blob") },
{ STRING_WITH_LEN("longblob") },
{ NULL, 0 }
}
};
@@ -2880,7 +2880,7 @@ int update_statistics_for_table(THD *thd, TABLE *table)
start_new_trans new_trans(thd);
if (open_stat_tables(thd, tables, TRUE))
if ((open_stat_tables(thd, tables, TRUE)))
DBUG_RETURN(rc);
save_binlog_format= thd->set_current_stmt_binlog_format_stmt();