summaryrefslogtreecommitdiff
path: root/mysql-test/t/grant_cache.test
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-08-12 13:12:09 +0200
committerunknown <guilhem@mysql.com>2004-08-12 13:12:09 +0200
commitf6e5d6ce9dc3f367cb7c665bca94316ee31cf384 (patch)
tree3ff100ec8d87b14a651197f717fb495bc5ce0f07 /mysql-test/t/grant_cache.test
parent438f11ef41d2e3bc60e1fae175e65178fc41fa8c (diff)
downloadmariadb-git-f6e5d6ce9dc3f367cb7c665bca94316ee31cf384.tar.gz
Fix for BUG#4678 "mysql-test-run fails on grant_cache":
do not use '' as user in tests, because it picks the Unix login (which gives unexpected results if it is 'root') (such behaviour is a feature of mysql_real_connect(), see the manual). mysql-test/t/grant_cache.test: do not use '' as user in tests, because it picks the Unix login (which gives unexpected results if it is 'root'). sql/slave.cc: a comment
Diffstat (limited to 'mysql-test/t/grant_cache.test')
-rw-r--r--mysql-test/t/grant_cache.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/grant_cache.test b/mysql-test/t/grant_cache.test
index a82cd732802..e5bde977bb7 100644
--- a/mysql-test/t/grant_cache.test
+++ b/mysql-test/t/grant_cache.test
@@ -67,7 +67,8 @@ show status like "Qcache_queries_in_cache";
show status like "Qcache_hits";
show status like "Qcache_not_cached";
-connect (unkuser,localhost,,,,$MASTER_MYPORT,master.sock);
+# Don't use '' as user because it will pick Unix login
+connect (unkuser,localhost,unkuser,,,$MASTER_MYPORT,master.sock);
connection unkuser;
show grants for current_user();