13 changed files with 196 additions and 85 deletions
-
4mysql-test/include/have_case_insensitive_fs.inc
-
2mysql-test/r/case_insensitive_fs.require
-
4mysql-test/r/grant.result
-
16mysql-test/r/grant_lowercase_fs.result
-
45mysql-test/r/lowercase_fs_off.result
-
6mysql-test/r/ps_grant.result
-
2mysql-test/r/system_mysql_db.result
-
30mysql-test/t/grant_lowercase_fs.test
-
62mysql-test/t/lowercase_fs_off.test
-
2scripts/mysql_system_tables.sql
-
4scripts/mysql_system_tables_fix.sql
-
43sql/sql_acl.cc
-
61vio/viosslfactories.c
@ -0,0 +1,4 @@ |
|||
--require r/case_insensitive_fs.require |
|||
--disable_query_log |
|||
show variables like 'lower_case_file_system'; |
|||
--enable_query_log |
|||
@ -0,0 +1,2 @@ |
|||
Variable_name Value |
|||
lower_case_file_system ON |
|||
@ -0,0 +1,16 @@ |
|||
create database db1; |
|||
GRANT CREATE ON db1.* to user_1@localhost; |
|||
GRANT SELECT ON db1.* to USER_1@localhost; |
|||
CREATE TABLE t1(f1 int); |
|||
SELECT * FROM t1; |
|||
ERROR 42000: SELECT command denied to user 'user_1'@'localhost' for table 't1' |
|||
SELECT * FROM t1; |
|||
f1 |
|||
CREATE TABLE t2(f1 int); |
|||
ERROR 42000: CREATE command denied to user 'USER_1'@'localhost' for table 't2' |
|||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost; |
|||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost; |
|||
DROP USER user_1@localhost; |
|||
DROP USER USER_1@localhost; |
|||
DROP DATABASE db1; |
|||
use test; |
|||
@ -0,0 +1,30 @@ |
|||
-- source include/have_case_insensitive_fs.inc |
|||
-- source include/not_embedded.inc |
|||
|
|||
|
|||
# |
|||
# Bug#41049 does syntax "grant" case insensitive? |
|||
# |
|||
create database db1; |
|||
GRANT CREATE ON db1.* to user_1@localhost; |
|||
GRANT SELECT ON db1.* to USER_1@localhost; |
|||
|
|||
connect (con1,localhost,user_1,,db1); |
|||
CREATE TABLE t1(f1 int); |
|||
--error 1142 |
|||
SELECT * FROM t1; |
|||
connect (con2,localhost,USER_1,,db1); |
|||
SELECT * FROM t1; |
|||
--error 1142 |
|||
CREATE TABLE t2(f1 int); |
|||
|
|||
connection default; |
|||
disconnect con1; |
|||
disconnect con2; |
|||
|
|||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM user_1@localhost; |
|||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM USER_1@localhost; |
|||
DROP USER user_1@localhost; |
|||
DROP USER USER_1@localhost; |
|||
DROP DATABASE db1; |
|||
use test; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue