mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +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;
|
CREATE USER mysqltest_1@localhost;
|
||||||
GRANT SELECT ON mysqltest1.t1 TO 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();
|
SELECT USER();
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
--error ER_TABLEACCESS_DENIED_ERROR
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
@@ -873,7 +873,7 @@ ALTER TABLE t1 RENAME TO t2;
|
|||||||
--connection default
|
--connection default
|
||||||
GRANT DROP ON mysqltest1.t1 TO mysqltest_1@localhost;
|
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
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
RENAME TABLE t1 TO t2;
|
RENAME TABLE t1 TO t2;
|
||||||
--error ER_TABLEACCESS_DENIED_ERROR
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
@@ -882,7 +882,7 @@ ALTER TABLE t1 RENAME TO t2;
|
|||||||
--connection default
|
--connection default
|
||||||
GRANT ALTER ON mysqltest1.t1 TO mysqltest_1@localhost;
|
GRANT ALTER ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||||
|
|
||||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
--error ER_TABLEACCESS_DENIED_ERROR
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
RENAME TABLE t1 TO t2;
|
RENAME TABLE t1 TO t2;
|
||||||
@@ -891,7 +891,7 @@ ALTER TABLE t1 RENAME TO t2;
|
|||||||
--disconnect conn42
|
--disconnect conn42
|
||||||
--connection default
|
--connection default
|
||||||
GRANT INSERT, CREATE ON mysqltest1.t1 TO mysqltest_1@localhost;
|
GRANT INSERT, CREATE ON mysqltest1.t1 TO mysqltest_1@localhost;
|
||||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
--error ER_TABLEACCESS_DENIED_ERROR
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
--disconnect conn42
|
--disconnect conn42
|
||||||
@@ -899,7 +899,7 @@ SHOW GRANTS;
|
|||||||
GRANT INSERT, SELECT, CREATE, ALTER, DROP ON mysqltest1.t2 TO mysqltest_1@localhost;
|
GRANT INSERT, SELECT, CREATE, ALTER, DROP ON mysqltest1.t2 TO mysqltest_1@localhost;
|
||||||
DROP TABLE mysqltest1.t2;
|
DROP TABLE mysqltest1.t2;
|
||||||
|
|
||||||
--connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
connect (conn42,localhost,mysqltest_1,,mysqltest1);
|
||||||
SHOW GRANTS;
|
SHOW GRANTS;
|
||||||
RENAME TABLE t1 TO t2;
|
RENAME TABLE t1 TO t2;
|
||||||
RENAME TABLE t2 TO t1;
|
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.t1 FROM mysqltest_1@localhost;
|
||||||
REVOKE DROP, INSERT ON mysqltest1.t2 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;
|
SHOW GRANTS;
|
||||||
--error ER_TABLEACCESS_DENIED_ERROR
|
--error ER_TABLEACCESS_DENIED_ERROR
|
||||||
RENAME TABLE t1 TO t2;
|
RENAME TABLE t1 TO t2;
|
||||||
|
Reference in New Issue
Block a user