mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fiux syntax errors in grant.test, connect command with both -- and ;
only one of those is allowed
This commit is contained in:
@ -862,7 +862,7 @@ CREATE TABLE mysqltest1.t2 (int_field INT);
|
||||
CREATE USER mysqltest_1@localhost;
|
||||
GRANT SELECT ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
SELECT USER();
|
||||
SHOW GRANTS;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
@ -873,7 +873,7 @@ ALTER TABLE t1 RENAME TO t2;
|
||||
--connection default
|
||||
GRANT DROP ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
RENAME TABLE t1 TO t2;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
@ -882,7 +882,7 @@ ALTER TABLE t1 RENAME TO t2;
|
||||
--connection default
|
||||
GRANT ALTER ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
SHOW GRANTS;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
RENAME TABLE t1 TO t2;
|
||||
@ -891,7 +891,7 @@ ALTER TABLE t1 RENAME TO t2;
|
||||
--disconnect conn42
|
||||
--connection default
|
||||
GRANT INSERT, CREATE ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
SHOW GRANTS;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
--disconnect conn42
|
||||
@ -899,7 +899,7 @@ SHOW GRANTS;
|
||||
GRANT INSERT, SELECT, CREATE, ALTER, DROP ON mysqltest1.t2 TO mysqltest_1@localhost;
|
||||
DROP TABLE mysqltest1.t2;
|
||||
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
SHOW GRANTS;
|
||||
RENAME TABLE t1 TO t2;
|
||||
RENAME TABLE t2 TO t1;
|
||||
@ -910,7 +910,7 @@ ALTER TABLE t2 RENAME TO t1;
|
||||
REVOKE DROP, INSERT ON mysqltest1.t1 FROM mysqltest_1@localhost;
|
||||
REVOKE DROP, INSERT ON mysqltest1.t2 FROM mysqltest_1@localhost;
|
||||
|
||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||
SHOW GRANTS;
|
||||
--error ER_TABLEACCESS_DENIED_ERROR
|
||||
RENAME TABLE t1 TO t2;
|
||||
|
Reference in New Issue
Block a user