Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
43201467
Commit
43201467
authored
Jun 01, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fiux syntax errors in grant.test, connect command with both -- and ;
only one of those is allowed
parent
fee880ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mysql-test/t/grant.test
mysql-test/t/grant.test
+6
-6
No files found.
mysql-test/t/grant.test
View file @
43201467
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment