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
71c243e9
Commit
71c243e9
authored
Sep 13, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/cps/mysql/trees/mysql-5.0-virgin
parents
e6209af8
e77ce951
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletion
+29
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+8
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+15
-0
sql/item.cc
sql/item.cc
+6
-1
No files found.
mysql-test/r/sp.result
View file @
71c243e9
...
...
@@ -3225,4 +3225,12 @@ select @var|
@var
abcdabcd
drop procedure bug12849_2|
drop procedure if exists bug13124|
create procedure bug13124()
begin
declare y integer;
set @x=y;
end|
call bug13124()|
drop procedure bug13124|
drop table t1,t2;
mysql-test/t/sp.test
View file @
71c243e9
...
...
@@ -4063,6 +4063,21 @@ call bug12849_2(@var)|
select
@
var
|
drop
procedure
bug12849_2
|
#
# Bug #13124 Stored Procedure using SELECT INTO crashes server
#
--
disable_warnings
drop
procedure
if
exists
bug13124
|
--
enable_warnings
create
procedure
bug13124
()
begin
declare
y
integer
;
set
@
x
=
y
;
end
|
call
bug13124
()
|
drop
procedure
bug13124
|
#
# BUG#NNNN: New bug synopsis
#
...
...
sql/item.cc
View file @
71c243e9
...
...
@@ -818,6 +818,8 @@ String *Item_splocal::val_str(String *sp)
DBUG_ASSERT
(
fixed
);
Item
*
it
=
this_item
();
String
*
ret
=
it
->
val_str
(
sp
);
null_value
=
it
->
null_value
;
/*
This way we mark returned value of val_str as const,
so that various functions (e.g. CONCAT) won't try to
...
...
@@ -833,9 +835,12 @@ String *Item_splocal::val_str(String *sp)
This is intended behaviour of Item_func_concat. Comments to
Item_param class contain some more details on the topic.
*/
if
(
!
ret
)
return
NULL
;
str_value_ptr
.
set
(
ret
->
ptr
(),
ret
->
length
(),
ret
->
charset
());
null_value
=
it
->
null_value
;
return
&
str_value_ptr
;
}
...
...
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