From f61c7728ab71c2272382303b4143fadb93dd4a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Wed, 8 Jul 2020 14:28:07 +0300 Subject: [PATCH] Fix bug626 with MariaDB 10.4 The test used legacy SQL syntax for updating the password. --- maxscale-system-test/bug626.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/maxscale-system-test/bug626.cpp b/maxscale-system-test/bug626.cpp index de1422a1b..3ecf28696 100644 --- a/maxscale-system-test/bug626.cpp +++ b/maxscale-system-test/bug626.cpp @@ -10,8 +10,7 @@ int main(int argc, char* argv[]) test.repl->connect(); execute_query(test.repl->nodes[0], "CREATE USER 'old'@'%%' IDENTIFIED BY 'old';"); - execute_query(test.repl->nodes[0], - "UPDATE mysql.user SET password = OLD_PASSWORD('old') WHERE user = 'old';"); + execute_query(test.repl->nodes[0], "SET PASSWORD FOR 'old'@'%%' = OLD_PASSWORD('old')"); execute_query(test.repl->nodes[0], "FLUSH PRIVILEGES"); test.repl->sync_slaves(); @@ -27,7 +26,6 @@ int main(int argc, char* argv[]) mysql_close(conn); execute_query(test.repl->nodes[0], "DROP USER 'old'@'%%'"); - test.log_includes(0, "MaxScale does not support these old passwords"); return test.global_result; }