1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-24 19:42:23 +03:00

MDEV-16735 Ensure mysql_upgrade works when changing alter_algorithm

MDEV-16735 describes how mysql_upgrade fails when alter_algorithm
is set to a value different than 'DEFAULT'/'COPY'. It was marked as
fixed by 0ee0868, but the fix didn't covered the possibility of having
the global value of alter_algorithm set to something different than
'DEFAULT'/'COPY'. To ensure that the upgrade process works properly
regardless the global value of alter_altorithm, this commit force it's
value to 'DEFAULT' (note the quotes) for the mysql_upgrade session.

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer
Amazon Web Services, Inc.
This commit is contained in:
Christian Gonzalez
2022-11-28 21:20:23 +00:00
committed by Daniel Black
parent 3d5ce0430b
commit 112870d7b4
3 changed files with 73 additions and 1 deletions

View File

@ -27,7 +27,7 @@
set sql_mode='';
set storage_engine=MyISAM;
set enforce_storage_engine=NULL;
set alter_algorithm=DEFAULT;
set alter_algorithm='DEFAULT';
ALTER TABLE user add File_priv enum('N','Y') COLLATE utf8_general_ci DEFAULT 'N' NOT NULL;