diff options
author | Sergei Golubchik <sergii@pisem.net> | 2013-07-09 22:36:53 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2013-07-09 22:36:53 +0200 |
commit | e06cc1adce6c79b7803dfcf1d351b953e69c12fa (patch) | |
tree | a5ca7d88804531914aa4ccb3e0210cb553336b1b /sql/sql_statistics.cc | |
parent | c3e3c78048d4f7ed373518a3b8684acc9be56b28 (diff) | |
download | mariadb-git-e06cc1adce6c79b7803dfcf1d351b953e69c12fa.tar.gz |
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.
Diffstat (limited to 'sql/sql_statistics.cc')
-rw-r--r-- | sql/sql_statistics.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index 14efb0265cc..c872069ed28 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -2990,7 +2990,10 @@ int rename_column_in_stat_tables(THD *thd, TABLE *tab, Field *col, int rc= 0; DBUG_ENTER("rename_column_in_stat_tables"); - + + if (tab->s->tmp_table != NO_TMP_TABLE) + DBUG_RETURN(0); + if (open_single_stat_table(thd, &tables, &stat_table_name[1], &open_tables_backup, TRUE)) { |