mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
MDEV-4758 10.0-monty tree: ALTER TABLE CHANGE COLUMN doesn't drop EITS stats
add missing rename_column_in_stat_tables(), delete_statistics_for_column(), delete_statistics_for_index(), rename_table_in_stat_tables() calls.
This commit is contained in:
parent
c3e3c78048
commit
e06cc1adce
4 changed files with 77 additions and 24 deletions
|
|
@ -93,6 +93,17 @@ void set_statistics_for_table(THD *thd, TABLE *table);
|
|||
class Columns_statistics;
|
||||
class Index_statistics;
|
||||
|
||||
static inline
|
||||
int rename_table_in_stat_tables(THD *thd, const char *db, const char *tab,
|
||||
const char *new_db, const char *new_tab)
|
||||
{
|
||||
LEX_STRING od= { const_cast<char*>(db), strlen(db) };
|
||||
LEX_STRING ot= { const_cast<char*>(tab), strlen(tab) };
|
||||
LEX_STRING nd= { const_cast<char*>(new_db), strlen(new_db) };
|
||||
LEX_STRING nt= { const_cast<char*>(new_tab), strlen(new_tab) };
|
||||
return rename_table_in_stat_tables(thd, &od, &ot, &nd, &nt);
|
||||
}
|
||||
|
||||
|
||||
/* Statistical data on a table */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue