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
660521a4
Commit
660521a4
authored
Dec 05, 2016
by
Marko Mäkelä
Committed by
GitHub
Dec 05, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #263 from grooverdan/10.2-MDEV-11451-isfinite
MDEV-11451: isinf || isnan -> !isfinite
parents
cc85ba8f
b11eb369
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
storage/innobase/gis/gis0geo.cc
storage/innobase/gis/gis0geo.cc
+3
-2
storage/innobase/gis/gis0rtree.cc
storage/innobase/gis/gis0rtree.cc
+1
-1
storage/myisam/rt_split.c
storage/myisam/rt_split.c
+2
-2
No files found.
sql/item_strfunc.cc
View file @
660521a4
...
...
@@ -2671,7 +2671,7 @@ String *Item_func_format::val_str_ascii(String *str)
return
0
;
/* purecov: inspected */
nr
=
my_double_round
(
nr
,
(
longlong
)
dec
,
FALSE
,
FALSE
);
str
->
set_real
(
nr
,
dec
,
&
my_charset_numeric
);
if
(
isnan
(
nr
)
||
my_isinf
(
nr
))
if
(
!
isfinite
(
nr
))
return
str
;
str_length
=
str
->
length
();
}
...
...
storage/innobase/gis/gis0geo.cc
View file @
660521a4
...
...
@@ -364,8 +364,9 @@ mbr_join_square(
b
+=
2
;
}
while
(
a
!=
end
);
/* Check for infinity or NaN, so we don't get NaN in calculations */
if
(
my_isinf
(
square
)
||
my_isnan
(
square
))
{
/* Check if finite (not infinity or NaN),
so we don't get NaN in calculations */
if
(
!
isfinite
(
square
))
{
return
DBL_MAX
;
}
...
...
storage/innobase/gis/gis0rtree.cc
View file @
660521a4
...
...
@@ -1988,7 +1988,7 @@ rtr_estimate_n_rows_in_range(
mtr_commit
(
&
mtr
);
mem_heap_free
(
heap
);
if
(
my_isinf
(
area
)
||
my_isnan
(
area
))
{
if
(
!
isfinite
(
area
))
{
return
(
HA_POS_ERROR
);
}
...
...
storage/myisam/rt_split.c
View file @
660521a4
...
...
@@ -69,8 +69,8 @@ static double mbr_join_square(const double *a, const double *b, int n_dim)
b
+=
2
;
}
while
(
a
!=
end
);
/* Check
for infinity or NaN
*/
if
(
my_isinf
(
square
)
||
isnan
(
square
))
/* Check
if not finite (i.e. infinity or NaN)
*/
if
(
!
isfinite
(
square
))
square
=
DBL_MAX
;
return
square
;
...
...
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