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
35e16842
Commit
35e16842
authored
Oct 16, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sp-security.result, sp.result, sp-security.test, sp.test:
Test for bug#12812 moved from sp.test to sp-security.test
parent
a5c5b2c6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
34 deletions
+36
-34
mysql-test/r/sp-security.result
mysql-test/r/sp-security.result
+12
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+0
-12
mysql-test/t/sp-security.test
mysql-test/t/sp-security.test
+24
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+0
-22
No files found.
mysql-test/r/sp-security.result
View file @
35e16842
...
...
@@ -251,3 +251,15 @@ drop procedure mysqltest_1.p1;
drop database mysqltest_1;
revoke usage on *.* from mysqltest_1@localhost;
drop user mysqltest_1@localhost;
drop function if exists bug12812|
create function bug12812() returns char(2)
begin
return 'ok';
end;
create user user_bug12812@localhost IDENTIFIED BY 'ABC'|
SELECT test.bug12812()|
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
CREATE VIEW v1 AS SELECT test.bug12812()|
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
DROP USER user_bug12812@localhost|
drop function bug12812|
mysql-test/r/sp.result
View file @
35e16842
...
...
@@ -3206,18 +3206,6 @@ set f1= concat( 'hello', f1 );
return f1;
end|
drop function bug9048|
drop function if exists bug12812|
create function bug12812() returns char(2)
begin
return 'ok';
end;
create user user_bug12812@localhost IDENTIFIED BY 'ABC'|
SELECT test.bug12812()|
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
CREATE VIEW v1 AS SELECT test.bug12812()|
ERROR 42000: execute command denied to user 'user_bug12812'@'localhost' for routine 'test.bug12812'
DROP USER user_bug12812@localhost|
drop function bug12812|
drop procedure if exists bug12849_1|
create procedure bug12849_1(inout x char) select x into x|
set @var='a'|
...
...
mysql-test/t/sp-security.test
View file @
35e16842
...
...
@@ -412,4 +412,28 @@ drop database mysqltest_1;
revoke
usage
on
*.*
from
mysqltest_1
@
localhost
;
drop
user
mysqltest_1
@
localhost
;
#
# BUG#12812 create view calling a function works without execute right
# on function
delimiter
|
;
--
disable_warnings
drop
function
if
exists
bug12812
|
--
enable_warnings
create
function
bug12812
()
returns
char
(
2
)
begin
return
'ok'
;
end
;
create
user
user_bug12812
@
localhost
IDENTIFIED
BY
'ABC'
|
--
replace_result
$MASTER_MYPORT
MYSQL_PORT
$MASTER_MYSOCK
MYSQL_SOCK
connect
(
test_user_12812
,
localhost
,
user_bug12812
,
ABC
,
test
)
|
--
error
1370
SELECT
test
.
bug12812
()
|
--
error
1370
CREATE
VIEW
v1
AS
SELECT
test
.
bug12812
()
|
# Cleanup
connection
default
|
disconnect
test_user_12812
|
DROP
USER
user_bug12812
@
localhost
|
drop
function
bug12812
|
delimiter
;
|
# End of 5.0 bugs.
mysql-test/t/sp.test
View file @
35e16842
...
...
@@ -4037,28 +4037,6 @@ begin
end
|
drop
function
bug9048
|
#
# BUG#12812 create view calling a function works without execute right
# on function
--
disable_warnings
drop
function
if
exists
bug12812
|
--
enable_warnings
create
function
bug12812
()
returns
char
(
2
)
begin
return
'ok'
;
end
;
create
user
user_bug12812
@
localhost
IDENTIFIED
BY
'ABC'
|
--
replace_result
$MASTER_MYPORT
MYSQL_PORT
$MASTER_MYSOCK
MYSQL_SOCK
connect
(
test_user_12812
,
localhost
,
user_bug12812
,
ABC
,
test
)
|
--
error
1370
SELECT
test
.
bug12812
()
|
--
error
1370
CREATE
VIEW
v1
AS
SELECT
test
.
bug12812
()
|
# Cleanup
connection
default
|
disconnect
test_user_12812
|
DROP
USER
user_bug12812
@
localhost
|
drop
function
bug12812
|
# Bug #12849 Stored Procedure: Crash on procedure call with CHAR type
# 'INOUT' parameter
#
...
...
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