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
a55963f0
Commit
a55963f0
authored
Sep 14, 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
12dfd287
50c1bdcd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
1 deletion
+56
-1
mysql-test/r/sp.result
mysql-test/r/sp.result
+16
-0
mysql-test/r/type_newdecimal.result
mysql-test/r/type_newdecimal.result
+3
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+29
-0
mysql-test/t/type_newdecimal.test
mysql-test/t/type_newdecimal.test
+7
-0
sql/item_func.cc
sql/item_func.cc
+1
-1
No files found.
mysql-test/r/sp.result
View file @
a55963f0
...
...
@@ -3331,4 +3331,20 @@ set @x=y;
end|
call bug13124()|
drop procedure bug13124|
drop procedure if exists bug12979_1|
create procedure bug12979_1(inout d decimal(5)) set d = d / 2|
set @bug12979_user_var = NULL|
call bug12979_1(@bug12979_user_var)|
drop procedure bug12979_1|
drop procedure if exists bug12979_2|
create procedure bug12979_2()
begin
declare internal_var decimal(5);
set internal_var= internal_var / 2;
select internal_var;
end|
call bug12979_2()|
internal_var
NULL
drop procedure bug12979_2|
drop table t1,t2;
mysql-test/r/type_newdecimal.result
View file @
a55963f0
...
...
@@ -1016,3 +1016,6 @@ v tdec
v tdec
9 0
drop procedure wg2;
select cast(@non_existing_user_var/2 as DECIMAL);
cast(@non_existing_user_var/2 as DECIMAL)
NULL
mysql-test/t/sp.test
View file @
a55963f0
...
...
@@ -4177,6 +4177,35 @@ end|
call
bug13124
()
|
drop
procedure
bug13124
|
#
# Bug #12979 Stored procedures: crash if inout decimal parameter
#
# check NULL inout parameters processing
--
disable_warnings
drop
procedure
if
exists
bug12979_1
|
--
enable_warnings
create
procedure
bug12979_1
(
inout
d
decimal
(
5
))
set
d
=
d
/
2
|
set
@
bug12979_user_var
=
NULL
|
call
bug12979_1
(
@
bug12979_user_var
)
|
drop
procedure
bug12979_1
|
# check NULL local variables processing
--
disable_warnings
drop
procedure
if
exists
bug12979_2
|
--
enable_warnings
create
procedure
bug12979_2
()
begin
declare
internal_var
decimal
(
5
);
set
internal_var
=
internal_var
/
2
;
select
internal_var
;
end
|
call
bug12979_2
()
|
drop
procedure
bug12979_2
|
#
# BUG#NNNN: New bug synopsis
#
...
...
mysql-test/t/type_newdecimal.test
View file @
a55963f0
...
...
@@ -1037,3 +1037,10 @@ call wg2()//
delimiter
;
//
drop
procedure
wg2
;
#
# Bug #12979 Stored procedures: crash if inout decimal parameter
# (not a SP bug in fact)
#
select
cast
(
@
non_existing_user_var
/
2
as
DECIMAL
);
sql/item_func.cc
View file @
a55963f0
...
...
@@ -765,7 +765,7 @@ my_decimal *Item_func_numhybrid::val_decimal(my_decimal *decimal_value)
}
case
REAL_RESULT
:
{
double
result
=
(
double
)
int
_op
();
double
result
=
(
double
)
real
_op
();
double2my_decimal
(
E_DEC_FATAL_ERROR
,
result
,
decimal_value
);
break
;
}
...
...
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