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
a4b2b2b9
Commit
a4b2b2b9
authored
Nov 21, 2009
by
Konstantin Osipov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport the test caes for Bug#36510 from 6.0-codebase.
parent
5a78d2a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+23
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+37
-0
No files found.
mysql-test/r/sp-error.result
View file @
a4b2b2b9
...
...
@@ -1659,6 +1659,29 @@ begin
declare continue handler for sqlstate '00000' set @x=0;
end$$
ERROR 42000: Bad SQLSTATE: '00000'
drop procedure if exists proc_36510;
create procedure proc_36510()
begin
declare should_be_illegal condition for sqlstate '00123';
declare continue handler for should_be_illegal set @x=0;
end$$
ERROR 42000: Bad SQLSTATE: '00123'
create procedure proc_36510()
begin
declare continue handler for sqlstate '00123' set @x=0;
end$$
ERROR 42000: Bad SQLSTATE: '00123'
create procedure proc_36510()
begin
declare should_be_illegal condition for 0;
declare continue handler for should_be_illegal set @x=0;
end$$
ERROR HY000: Incorrect CONDITION value: '0'
create procedure proc_36510()
begin
declare continue handler for 0 set @x=0;
end$$
ERROR HY000: Incorrect CONDITION value: '0'
drop procedure if exists p1;
set @old_recursion_depth = @@max_sp_recursion_depth;
set @@max_sp_recursion_depth = 255;
...
...
mysql-test/t/sp-error.test
View file @
a4b2b2b9
...
...
@@ -2419,6 +2419,43 @@ end$$
delimiter
;
$$
#
# Bug#36510 (Stored Procedures: mysql_error_code 0 should be illegal)
#
--
disable_warnings
drop
procedure
if
exists
proc_36510
;
--
enable_warnings
delimiter
$$
;
--
error
ER_SP_BAD_SQLSTATE
create
procedure
proc_36510
()
begin
declare
should_be_illegal
condition
for
sqlstate
'00123'
;
declare
continue
handler
for
should_be_illegal
set
@
x
=
0
;
end
$$
--
error
ER_SP_BAD_SQLSTATE
create
procedure
proc_36510
()
begin
declare
continue
handler
for
sqlstate
'00123'
set
@
x
=
0
;
end
$$
--
error
ER_WRONG_VALUE
create
procedure
proc_36510
()
begin
declare
should_be_illegal
condition
for
0
;
declare
continue
handler
for
should_be_illegal
set
@
x
=
0
;
end
$$
--
error
ER_WRONG_VALUE
create
procedure
proc_36510
()
begin
declare
continue
handler
for
0
set
@
x
=
0
;
end
$$
delimiter
;
$$
#
# Bug#15192: "fatal errors" are caught by handlers in stored procedures
#
...
...
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