#
# MDEV-24363 10.4: change definition of mysql.user view
# to reflect the correct value from mysql.global_priv
# This change was added because mysql.user view definition
# was already changed when mariadb.sys was introduced, so
# it's decently ok if we change it again to fix mdev-24363
#
# Test that mysql.user password_expired column
# shows the right value as in mysql.global_priv
#
create user gigi@localhost;
show create user gigi@localhost;
CREATE USER for gigi@localhost
CREATE USER `gigi`@`localhost`
select password_expired from mysql.user where user='gigi' and host='localhost';
password_expired
N
alter user gigi@localhost password expire;
show create user gigi@localhost;
CREATE USER for gigi@localhost
CREATE USER `gigi`@`localhost` PASSWORD EXPIRE
select password_expired from mysql.user where user='gigi' and host='localhost';
password_expired
Y
drop user gigi@localhost;
#
# Test that upgrades from 10.4+ versions before this mdev
# correctly drop and recreate the mysql.user view
#
