diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2018-12-12 19:58:20 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-12-13 20:52:23 +0400 |
commit | 15eaeace394320d96b6bf193f9e049f9358d2b07 (patch) | |
tree | 602c5eec614d2aea0073fe34e5cedad1e0bdbe7b /sql | |
parent | 32b7d456d5da193c8797e20467f6eac0a6b0c39a (diff) | |
download | mariadb-git-15eaeace394320d96b6bf193f9e049f9358d2b07.tar.gz |
MDEV-16987 - ALTER DATABASE possible in read-only mode
Forbid ALTER DATABASE under read_only.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_parse.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 9f8a625325f..95243ead2fe 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -831,6 +831,7 @@ static bool deny_updates_if_read_only_option(THD *thd, TABLE_LIST *all_tables) DBUG_RETURN(FALSE); if (lex->sql_command == SQLCOM_CREATE_DB || + lex->sql_command == SQLCOM_ALTER_DB || lex->sql_command == SQLCOM_DROP_DB) DBUG_RETURN(TRUE); |