Fiux syntax errors in grant.test, connect command with both -- and ;

only one of those is allowed
parent 1b6d413a
...@@ -862,7 +862,7 @@ CREATE TABLE mysqltest1.t2 (int_field INT); ...@@ -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; ...@@ -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; ...@@ -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; ...@@ -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; ...@@ -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; ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment