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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6ce0113d
Commit
6ce0113d
authored
May 18, 2006
by
msvensson@shellback.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move test that requires innodb to sp_trans
parent
d8d05f31
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
65 additions
and
66 deletions
+65
-66
mysql-test/r/sp-security.result
mysql-test/r/sp-security.result
+0
-10
mysql-test/r/sp.result
mysql-test/r/sp.result
+0
-16
mysql-test/r/sp_trans.result
mysql-test/r/sp_trans.result
+26
-0
mysql-test/t/sp-security.test
mysql-test/t/sp-security.test
+0
-23
mysql-test/t/sp.test
mysql-test/t/sp.test
+0
-17
mysql-test/t/sp_trans.test
mysql-test/t/sp_trans.test
+39
-0
No files found.
mysql-test/r/sp-security.result
View file @
6ce0113d
...
@@ -314,16 +314,6 @@ select * from db_bug14533.t1;
...
@@ -314,16 +314,6 @@ select * from db_bug14533.t1;
ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1'
ERROR 42000: SELECT command denied to user 'user_bug14533'@'localhost' for table 't1'
drop user user_bug14533@localhost;
drop user user_bug14533@localhost;
drop database db_bug14533;
drop database db_bug14533;
CREATE DATABASE db_bug7787;
use db_bug7787;
CREATE PROCEDURE p1()
SHOW INNODB STATUS;
Warnings:
Warning 1541 The syntax 'SHOW INNODB STATUS' is deprecated and will be removed in MySQL 5.2. Please use 'SHOW ENGINE INNODB STATUS' instead.
GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost;
DROP DATABASE db_bug7787;
drop user user_bug7787@localhost;
use test;
---> connection: root
---> connection: root
DROP DATABASE IF EXISTS mysqltest;
DROP DATABASE IF EXISTS mysqltest;
...
...
mysql-test/r/sp.result
View file @
6ce0113d
...
@@ -4796,22 +4796,6 @@ i
...
@@ -4796,22 +4796,6 @@ i
0
0
drop table t3|
drop table t3|
drop procedure bug16887|
drop procedure bug16887|
create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
CREATE FUNCTION bug13575 ( p1 integer )
returns varchar(3)
BEGIN
DECLARE v1 VARCHAR(10) DEFAULT null;
SELECT f2 INTO v1 FROM t3 WHERE f1 = p1;
RETURN v1;
END|
select distinct f1, bug13575(f1) from t3 order by f1|
f1 bug13575(f1)
1 aaa
2 bbb
3 ccc
drop function bug13575;
drop table t3|
drop procedure if exists bug16474_1|
drop procedure if exists bug16474_1|
drop procedure if exists bug16474_2|
drop procedure if exists bug16474_2|
delete from t1|
delete from t1|
...
...
mysql-test/r/sp_trans.result
View file @
6ce0113d
...
@@ -530,3 +530,29 @@ count(*)
...
@@ -530,3 +530,29 @@ count(*)
drop table t3, t4|
drop table t3, t4|
drop procedure bug14210|
drop procedure bug14210|
set @@session.max_heap_table_size=default|
set @@session.max_heap_table_size=default|
CREATE DATABASE db_bug7787|
use db_bug7787|
CREATE PROCEDURE p1()
SHOW INNODB STATUS; |
Warnings:
Warning 1541 The syntax 'SHOW INNODB STATUS' is deprecated and will be removed in MySQL 5.2. Please use 'SHOW ENGINE INNODB STATUS' instead.
GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost|
DROP DATABASE db_bug7787|
drop user user_bug7787@localhost|
use test|
create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
CREATE FUNCTION bug13575 ( p1 integer )
returns varchar(3)
BEGIN
DECLARE v1 VARCHAR(10) DEFAULT null;
SELECT f2 INTO v1 FROM t3 WHERE f1 = p1;
RETURN v1;
END|
select distinct f1, bug13575(f1) from t3 order by f1|
f1 bug13575(f1)
1 aaa
2 bbb
3 ccc
drop function bug13575|
drop table t3|
mysql-test/t/sp-security.test
View file @
6ce0113d
...
@@ -526,29 +526,6 @@ drop user user_bug14533@localhost;
...
@@ -526,29 +526,6 @@ drop user user_bug14533@localhost;
drop
database
db_bug14533
;
drop
database
db_bug14533
;
#
# BUG#7787: Stored procedures: improper warning for "grant execute" statement
#
# Prepare.
CREATE
DATABASE
db_bug7787
;
use
db_bug7787
;
# Test.
CREATE
PROCEDURE
p1
()
SHOW
INNODB
STATUS
;
GRANT
EXECUTE
ON
PROCEDURE
p1
TO
user_bug7787
@
localhost
;
# Cleanup.
DROP
DATABASE
db_bug7787
;
drop
user
user_bug7787
@
localhost
;
use
test
;
#
#
# WL#2897: Complete definer support in the stored routines.
# WL#2897: Complete definer support in the stored routines.
#
#
...
...
mysql-test/t/sp.test
View file @
6ce0113d
...
@@ -5636,23 +5636,6 @@ call bug16887()|
...
@@ -5636,23 +5636,6 @@ call bug16887()|
drop
table
t3
|
drop
table
t3
|
drop
procedure
bug16887
|
drop
procedure
bug16887
|
#
# Bug#13575 SP funcs in select with distinct/group and order by can
# produce bad data
#
create
table
t3
(
f1
int
,
f2
varchar
(
3
),
primary
key
(
f1
))
engine
=
innodb
|
insert
into
t3
values
(
1
,
'aaa'
),(
2
,
'bbb'
),(
3
,
'ccc'
)
|
CREATE
FUNCTION
bug13575
(
p1
integer
)
returns
varchar
(
3
)
BEGIN
DECLARE
v1
VARCHAR
(
10
)
DEFAULT
null
;
SELECT
f2
INTO
v1
FROM
t3
WHERE
f1
=
p1
;
RETURN
v1
;
END
|
select
distinct
f1
,
bug13575
(
f1
)
from
t3
order
by
f1
|
drop
function
bug13575
;
drop
table
t3
|
#
#
# BUG#16474: SP crashed MySQL
# BUG#16474: SP crashed MySQL
# (when using "order by localvar", where 'localvar' is just that.
# (when using "order by localvar", where 'localvar' is just that.
...
...
mysql-test/t/sp_trans.test
View file @
6ce0113d
...
@@ -552,6 +552,45 @@ drop table t3, t4|
...
@@ -552,6 +552,45 @@ drop table t3, t4|
drop
procedure
bug14210
|
drop
procedure
bug14210
|
set
@@
session
.
max_heap_table_size
=
default
|
set
@@
session
.
max_heap_table_size
=
default
|
#
# BUG#7787: Stored procedures: improper warning for "grant execute" statement
#
# Prepare.
CREATE
DATABASE
db_bug7787
|
use
db_bug7787
|
# Test.
CREATE PROCEDURE p1()
SHOW INNODB STATUS
;
|
GRANT
EXECUTE
ON
PROCEDURE
p1
TO
user_bug7787
@
localhost
|
# Cleanup.
DROP
DATABASE
db_bug7787
|
drop
user
user_bug7787
@
localhost
|
use
test
|
#
# Bug#13575 SP funcs in select with distinct/group and order by can
# produce bad data
#
create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
CREATE FUNCTION bug13575 ( p1 integer )
returns varchar(3)
BEGIN
DECLARE v1 VARCHAR(10) DEFAULT null
;
SELECT
f2
INTO
v1
FROM
t3
WHERE
f1
=
p1
;
RETURN
v1
;
END
|
select
distinct
f1
,
bug13575
(
f1
)
from
t3
order
by
f1
|
drop
function
bug13575
|
drop
table
t3
|
#
#
# BUG#NNNN: New bug synopsis
# BUG#NNNN: New bug synopsis
...
...
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