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
e06a8826
Commit
e06a8826
authored
Mar 23, 2007
by
holyfoot/hf@mysql.com/hfmain.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes to make embedded-server test working
parent
7eb78d8d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
61 additions
and
58 deletions
+61
-58
mysql-test/r/view.result
mysql-test/r/view.result
+0
-32
mysql-test/r/view_grant.result
mysql-test/r/view_grant.result
+33
-0
mysql-test/t/query_cache_sql_prepare.test
mysql-test/t/query_cache_sql_prepare.test
+1
-1
mysql-test/t/view.test
mysql-test/t/view.test
+0
-25
mysql-test/t/view_grant.test
mysql-test/t/view_grant.test
+27
-0
No files found.
mysql-test/r/view.result
View file @
e06a8826
...
...
@@ -3321,36 +3321,4 @@ DROP TABLE `t-2`;
DROP VIEW `v-2`;
DROP DATABASE `d-1`;
USE test;
DROP VIEW IF EXISTS v1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (i INT);
CREATE VIEW v1 AS SELECT * FROM t1;
ALTER VIEW v1 AS SELECT * FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
ALTER DEFINER=no_such@user_1 VIEW v1 AS SELECT * FROM t1;
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
ALTER ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=MERGE DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
ALTER ALGORITHM=TEMPTABLE DEFINER=no_such@user_2 VIEW v1 AS SELECT * FROM t1;
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`no_such`@`user_2` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
DROP VIEW v1;
DROP TABLE t1;
End of 5.1 tests.
mysql-test/r/view_grant.result
View file @
e06a8826
...
...
@@ -797,3 +797,36 @@ v3 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VI
DROP USER u26813@localhost;
DROP DATABASE db26813;
End of 5.0 tests.
DROP VIEW IF EXISTS v1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (i INT);
CREATE VIEW v1 AS SELECT * FROM t1;
ALTER VIEW v1 AS SELECT * FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
ALTER DEFINER=no_such@user_1 VIEW v1 AS SELECT * FROM t1;
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=UNDEFINED DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
ALTER ALGORITHM=MERGE VIEW v1 AS SELECT * FROM t1;
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=MERGE DEFINER=`no_such`@`user_1` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_1' registered
ALTER ALGORITHM=TEMPTABLE DEFINER=no_such@user_2 VIEW v1 AS SELECT * FROM t1;
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
SHOW CREATE VIEW v1;
View Create View
v1 CREATE ALGORITHM=TEMPTABLE DEFINER=`no_such`@`user_2` SQL SECURITY DEFINER VIEW `v1` AS select `t1`.`i` AS `i` from `t1`
Warnings:
Note 1449 There is no 'no_such'@'user_2' registered
DROP VIEW v1;
DROP TABLE t1;
End of 5.1 tests.
mysql-test/t/query_cache_sql_prepare.test
View file @
e06a8826
...
...
@@ -5,7 +5,7 @@
--
source
include
/
have_query_cache
.
inc
connect
(
con1
,
127.0
.
0.1
,
root
,,
test
,
$MASTER_MYPORT
,);
connect
(
con1
,
localhost
,
root
,,
test
,
$MASTER_MYPORT
,);
connection
default
;
set
global
query_cache_size
=
100000
;
...
...
mysql-test/t/view.test
View file @
e06a8826
...
...
@@ -3216,29 +3216,4 @@ DROP VIEW `v-2`;
DROP
DATABASE
`d-1`
;
USE
test
;
#
# Test that ALTER VIEW accepts DEFINER and ALGORITHM, see bug#16425.
#
--
disable_warnings
DROP
VIEW
IF
EXISTS
v1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
CREATE
TABLE
t1
(
i
INT
);
CREATE
VIEW
v1
AS
SELECT
*
FROM
t1
;
ALTER
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
DEFINER
=
no_such
@
user_1
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
ALGORITHM
=
MERGE
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
ALGORITHM
=
TEMPTABLE
DEFINER
=
no_such
@
user_2
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
.
mysql-test/t/view_grant.test
View file @
e06a8826
...
...
@@ -1073,3 +1073,30 @@ DROP DATABASE db26813;
disconnect
u1
;
--
echo
End
of
5.0
tests
.
#
# Test that ALTER VIEW accepts DEFINER and ALGORITHM, see bug#16425.
#
connection
default
;
--
disable_warnings
DROP
VIEW
IF
EXISTS
v1
;
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
CREATE
TABLE
t1
(
i
INT
);
CREATE
VIEW
v1
AS
SELECT
*
FROM
t1
;
ALTER
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
DEFINER
=
no_such
@
user_1
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
ALGORITHM
=
MERGE
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
ALTER
ALGORITHM
=
TEMPTABLE
DEFINER
=
no_such
@
user_2
VIEW
v1
AS
SELECT
*
FROM
t1
;
SHOW
CREATE
VIEW
v1
;
DROP
VIEW
v1
;
DROP
TABLE
t1
;
--
echo
End
of
5.1
tests
.
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