diff options
author | unknown <guilhem@mysql.com> | 2004-08-12 13:12:09 +0200 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-08-12 13:12:09 +0200 |
commit | f6e5d6ce9dc3f367cb7c665bca94316ee31cf384 (patch) | |
tree | 3ff100ec8d87b14a651197f717fb495bc5ce0f07 /mysql-test/t/grant_cache.test | |
parent | 438f11ef41d2e3bc60e1fae175e65178fc41fa8c (diff) | |
download | mariadb-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.test | 3 |
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(); |