1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-22726: Add check that one can't change general or slow log to a

transactional engine
This commit is contained in:
Vlad Lesin
2020-06-15 13:40:50 +03:00
parent e3104c4a8c
commit 97f7d4a9b4
4 changed files with 23 additions and 0 deletions

View File

@ -8925,6 +8925,13 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
DBUG_RETURN(true);
}
if (create_info->db_type == maria_hton &&
create_info->transactional != HA_CHOICE_NO)
{
my_error(ER_TRANSACTIONAL_ARIA_LOG_ENGINE, MYF(0));
DBUG_RETURN(true);
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
if (alter_info->flags & Alter_info::ALTER_PARTITION)
{