1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-18119 upgrading from 10.3 to 10.4 can result in the password for a user to be wiped ou

This commit is contained in:
Sergei Golubchik
2019-01-09 20:24:34 +01:00
parent eeaaf4a845
commit 3ab445819e
3 changed files with 68 additions and 10 deletions

View File

@ -803,7 +803,7 @@ IF 'BASE TABLE' = (select table_type from information_schema.tables where table_
'max_user_connections', max_user_connections,
'max_statement_time', max_statement_time,
'plugin', if(plugin>'',plugin,if(length(password)=16,'mysql_old_password','mysql_native_password')),
'authentication_string', if(plugin>'',authentication_string,password),
'authentication_string', if(plugin>'' and authentication_string>'',authentication_string,password),
'default_role', default_role,
'is_role', 'Y'=is_role)) as Priv
FROM user;