diff --git a/Docs/manual.texi b/Docs/manual.texi index 55ac278155f..209751aa4dc 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -46928,6 +46928,8 @@ not yet 100% confident in this code. @appendixsubsec Changes in release 3.23.52 @itemize @bullet @item +Fixed bug in ALTERing TABLE of BDB type. +@item Fixed bug when logging @code{LOAD DATA INFILE} to binary log with no active database. @item diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 7b5fc5797c9..ce3415f10fb 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -1652,7 +1652,11 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, VOID(pthread_mutex_unlock(&LOCK_open)); goto err; } - +#ifdef HAVE_BERKELEY_DB + extern bool berkeley_flush_logs(void); + if (old_db_type == DB_TYPE_BERKELEY_DB && berkeley_flush_logs()) + goto err; +#endif thd->proc_info="end"; mysql_update_log.write(thd, thd->query,thd->query_length); if (mysql_bin_log.is_open())