summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <guilhem@gbichot2>2003-10-07 23:15:13 +0200
committerunknown <guilhem@gbichot2>2003-10-07 23:15:13 +0200
commit12e5e094a9c2154474b68a05c30a99373e1a4026 (patch)
treed59f345b6852070b97cdbd5189b0b66107640b81 /mysql-test
parent6fc8b48c4652d404b38146844d17ed2a01a3b327 (diff)
downloadmariadb-git-12e5e094a9c2154474b68a05c30a99373e1a4026.tar.gz
mysql_real_connect picks the Unix login when the user "" is used.
This makes the test non-repeatable when running as root. So I change to not use the "" user, but a random string which will always result in the @localhost user being selected by the server. mysql-test/t/rpl_temporary.test: mysql_real_connect picks the Unix login when the user "" is used. This makes the test non-repeatable when running as root. So I change to not use the "" user, but a random string which will always result in the @localhost user being selected by the server.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/t/rpl_temporary.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/rpl_temporary.test b/mysql-test/t/rpl_temporary.test
index 79dba60964d..f1373d7ef23 100644
--- a/mysql-test/t/rpl_temporary.test
+++ b/mysql-test/t/rpl_temporary.test
@@ -19,7 +19,10 @@ connection master;
connect (con1,localhost,root,,);
connect (con2,localhost,root,,);
-connect (con3,localhost,,,);
+# We want to connect as an unprivileged user. But if we use user="" then this
+# will pick the Unix login, which will cause problems if you're running the test
+# as root.
+connect (con3,localhost,zedjzlcsjhd,,);
# We are going to use SET PSEUDO_THREAD_ID in this test;
# check that it requires the SUPER privilege.