summaryrefslogtreecommitdiff
path: root/tests/grant.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grant.pl')
-rw-r--r--tests/grant.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/grant.pl b/tests/grant.pl
index 1cd72af48fe..9212c610ac1 100644
--- a/tests/grant.pl
+++ b/tests/grant.pl
@@ -435,8 +435,9 @@ user_connect(0);
user_query("LOCK TABLES $opt_database.test3 READ");
user_query("UNLOCK TABLES");
safe_query("revoke SELECT,INSERT,UPDATE,DELETE on $opt_database.test3 from $user");
-user_connect(1);
+user_connect(0);
safe_query("revoke LOCK TABLES on *.* from $user");
+user_connect(1);
safe_query("drop table $opt_database.test3");
#