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
59b311ba
Commit
59b311ba
authored
Sep 29, 2007
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
view_grant.result, view_grant.test:
Corrected test case for the bug#29908.
parent
77dabba6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+6
-5
mysql-test/t/view_grant.test
mysql-test/t/view_grant.test
+3
-2
No files found.
mysql-test/r/view_grant.result
View file @
59b311ba
...
...
@@ -806,25 +806,26 @@ GRANT SELECT ON mysqltest_29908.t1 TO u29908_2@localhost;
ALTER VIEW v1 AS SELECT f2 FROM t1;
ERROR 42000: Access denied; you need the SUPER privilege for this operation
ALTER VIEW v2 AS SELECT f2 FROM t1;
ERROR 42000: Access denied; you need the SUPER privilege for this operation
SHOW CREATE VIEW v2;
View Create View
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
2` AS `f2
` from `t1`
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
1` AS `f1
` from `t1`
ALTER VIEW v1 AS SELECT f2 FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f2` AS `f2` from `t1`
ALTER VIEW v2 AS SELECT f
1
FROM t1;
ALTER VIEW v2 AS SELECT f
2
FROM t1;
SHOW CREATE VIEW v2;
View Create View
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
1` AS `f1
` from `t1`
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
2` AS `f2
` from `t1`
ALTER VIEW v1 AS SELECT f1 FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`f1` AS `f1` from `t1`
ALTER VIEW v2 AS SELECT f
2
FROM t1;
ALTER VIEW v2 AS SELECT f
1
FROM t1;
SHOW CREATE VIEW v2;
View Create View
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
2` AS `f2
` from `t1`
v2 CREATE ALGORITHM=UNDEFINED DEFINER=`u29908_1`@`localhost` SQL SECURITY INVOKER VIEW `v2` AS select `t1`.`f
1` AS `f1
` from `t1`
DROP USER u29908_1@localhost;
DROP USER u29908_2@localhost;
DROP DATABASE mysqltest_29908;
...
...
mysql-test/t/view_grant.test
View file @
59b311ba
...
...
@@ -1070,19 +1070,20 @@ GRANT SELECT ON mysqltest_29908.t1 TO u29908_2@localhost;
connect
(
u2
,
localhost
,
u29908_2
,,
mysqltest_29908
);
--
error
ER_SPECIFIC_ACCESS_DENIED_ERROR
ALTER
VIEW
v1
AS
SELECT
f2
FROM
t1
;
--
error
ER_SPECIFIC_ACCESS_DENIED_ERROR
ALTER
VIEW
v2
AS
SELECT
f2
FROM
t1
;
SHOW
CREATE
VIEW
v2
;
connect
(
u1
,
localhost
,
u29908_1
,,
mysqltest_29908
);
ALTER
VIEW
v1
AS
SELECT
f2
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
VIEW
v2
AS
SELECT
f
1
FROM
t1
;
ALTER
VIEW
v2
AS
SELECT
f
2
FROM
t1
;
SHOW
CREATE
VIEW
v2
;
connection
root
;
ALTER
VIEW
v1
AS
SELECT
f1
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
VIEW
v2
AS
SELECT
f
2
FROM
t1
;
ALTER
VIEW
v2
AS
SELECT
f
1
FROM
t1
;
SHOW
CREATE
VIEW
v2
;
DROP
USER
u29908_1
@
localhost
;
...
...
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