diff options
author | unknown <gluh@gluh.mysql.r18.ru> | 2004-11-02 17:45:26 +0300 |
---|---|---|
committer | unknown <gluh@gluh.mysql.r18.ru> | 2004-11-02 17:45:26 +0300 |
commit | efa50b5c03f703191fc4df6f5f083232350ed5bf (patch) | |
tree | 9028a53d5a17350d315c3bba47daa49454e964fb /mysql-test/t/grant2.test | |
parent | 81ef1a41d7a3fe073831d6265e9d5491f9702f29 (diff) | |
download | mariadb-git-efa50b5c03f703191fc4df6f5f083232350ed5bf.tar.gz |
WL#1437 :don't create new users with GRANT
Diffstat (limited to 'mysql-test/t/grant2.test')
-rw-r--r-- | mysql-test/t/grant2.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/grant2.test b/mysql-test/t/grant2.test index 3a9afa7453b..6aa47a01753 100644 --- a/mysql-test/t/grant2.test +++ b/mysql-test/t/grant2.test @@ -21,6 +21,15 @@ select current_user; grant all privileges on `my\_1`.* to mysqltest_2@localhost with grant option; --error 1044 grant all privileges on `my_%`.* to mysqltest_3@localhost with grant option; +# +# NO_AUTO_CREATE_USER mode +# +set @@sql_mode='NO_AUTO_CREATE_USER'; +select @@sql_mode; +--error 1211 +grant select on `my\_1`.* to mysqltest_4@localhost with grant option; +grant select on `my\_1`.* to mysqltest_4@localhost identified by 'mypass' +with grant option; disconnect user1; connection default; show grants for mysqltest_1@localhost; |