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
9cc2dba2
Commit
9cc2dba2
authored
Sep 09, 2004
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-1218-a
parents
0ae54976
dde44b8c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
2 deletions
+33
-2
mysql-test/r/sp.result
mysql-test/r/sp.result
+13
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+12
-0
sql/item_func.h
sql/item_func.h
+8
-2
No files found.
mysql-test/r/sp.result
View file @
9cc2dba2
...
...
@@ -1820,6 +1820,19 @@ Ok
Ok
drop procedure bug5258|
drop procedure bug5258_aux|
create function bug4487() returns char
begin
declare v char;
return v;
end|
Warnings:
Warning 1311 Referring to uninitialized variable v
select bug4487()|
bug4487()
NULL
Warnings:
Warning 1311 Referring to uninitialized variable v
drop function bug4487|
drop table if exists fac|
create table fac (n int unsigned not null primary key, f bigint unsigned)|
create procedure ifac(n int unsigned)
...
...
mysql-test/t/sp.test
View file @
9cc2dba2
...
...
@@ -1987,6 +1987,18 @@ call bug5258_aux()|
drop
procedure
bug5258
|
drop
procedure
bug5258_aux
|
#
# BUG#4487: Stored procedure connection aborted if uninitialized char
#
create
function
bug4487
()
returns
char
begin
declare
v
char
;
return
v
;
end
|
select
bug4487
()
|
drop
function
bug4487
|
#
# Some "real" examples
...
...
sql/item_func.h
View file @
9cc2dba2
...
...
@@ -1131,25 +1131,31 @@ public:
double
val
()
{
Item
*
it
;
double
d
;
if
(
execute
(
&
it
))
{
null_value
=
1
;
return
0.0
;
}
return
it
->
val
();
d
=
it
->
val
();
null_value
=
it
->
null_value
;
return
d
;
}
String
*
val_str
(
String
*
str
)
{
Item
*
it
;
String
*
s
;
if
(
execute
(
&
it
))
{
null_value
=
1
;
return
NULL
;
}
return
it
->
val_str
(
str
);
s
=
it
->
val_str
(
str
);
null_value
=
it
->
null_value
;
return
s
;
}
void
fix_length_and_dec
();
...
...
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