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
b8734a1c
Commit
b8734a1c
authored
Sep 30, 2008
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging
parents
1e26e74c
ce64a16b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
mysql-test/r/sp-error.result
mysql-test/r/sp-error.result
+7
-0
mysql-test/t/sp-error.test
mysql-test/t/sp-error.test
+8
-0
sql/sp_head.cc
sql/sp_head.cc
+5
-1
No files found.
mysql-test/r/sp-error.result
View file @
b8734a1c
...
...
@@ -1628,6 +1628,13 @@ end loop label1;
end loop;
end|
ERROR 42000: End-label label1 without match
CREATE TABLE t1 (a INT)|
INSERT INTO t1 VALUES (1),(2)|
CREATE PROCEDURE p1(a INT) BEGIN END|
CALL p1((SELECT * FROM t1))|
ERROR 21000: Subquery returns more than 1 row
DROP PROCEDURE IF EXISTS p1|
DROP TABLE t1|
drop procedure if exists p1;
create procedure p1()
begin
...
...
mysql-test/t/sp-error.test
View file @
b8734a1c
...
...
@@ -2362,6 +2362,14 @@ begin
end
loop
;
end
|
CREATE
TABLE
t1
(
a
INT
)
|
INSERT
INTO
t1
VALUES
(
1
),(
2
)
|
CREATE
PROCEDURE
p1
(
a
INT
)
BEGIN
END
|
--
error
ER_SUBQUERY_NO_1_ROW
CALL
p1
((
SELECT
*
FROM
t1
))
|
DROP
PROCEDURE
IF
EXISTS
p1
|
DROP
TABLE
t1
|
delimiter
;
|
#
...
...
sql/sp_head.cc
View file @
b8734a1c
...
...
@@ -1940,7 +1940,11 @@ sp_head::execute_procedure(THD *thd, List<Item> *args)
we'll leave it here.
*/
if
(
!
thd
->
in_sub_stmt
)
{
thd
->
lex
->
unit
.
cleanup
();
close_thread_tables
(
thd
);
thd
->
rollback_item_tree_changes
();
}
DBUG_PRINT
(
"info"
,(
" %.*s: eval args done"
,
(
int
)
m_name
.
length
,
m_name
.
str
));
...
...
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