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
3d206746
Commit
3d206746
authored
Jul 25, 2017
by
Alexey Botchkov
Committed by
Sergei Golubchik
Aug 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-12915 ST_Centroid does not return the same result than MySQL.
Test fixed for IA64.
parent
7f5a8f17
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mysql-test/t/gis.test
mysql-test/t/gis.test
+5
-5
No files found.
mysql-test/t/gis.test
View file @
3d206746
...
@@ -356,15 +356,15 @@ insert into t1 values ('85984',GeomFromText('MULTIPOLYGON(((-115.006363
...
@@ -356,15 +356,15 @@ insert into t1 values ('85984',GeomFromText('MULTIPOLYGON(((-115.006363
36.248666,-115.263639 36.247466,-115.263839 36.252766,-115.261439
36.248666,-115.263639 36.247466,-115.263839 36.252766,-115.261439
36.252666,-115.261439 36.247366,-115.247239 36.247066)))'
));
36.252666,-115.261439 36.247366,-115.247239 36.247066)))'
));
# Expected result
is 115.31877315203187, but IA64 returns 115.31877315203188
# Expected result
s are 115.2970604672862 and 36.23335610879993, but IA64 returns
# due to fused multiply-add instructions.
#
slightly different values
due to fused multiply-add instructions.
--
replace_result
115.
31877315203188
115.31877315203187
--
replace_result
115.
29706047613604
115.2970604672862
36.23335611157958
36.23335610879993
select
object_id
,
geometrytype
(
geo
),
ISSIMPLE
(
GEO
),
ASTEXT
(
centroid
(
geo
))
from
select
object_id
,
geometrytype
(
geo
),
ISSIMPLE
(
GEO
),
ASTEXT
(
centroid
(
geo
))
from
t1
where
object_id
=
85998
;
t1
where
object_id
=
85998
;
# Expected result is 36.3
310176346905, but IA64 returns 36.3310176346904
# Expected result is 36.3
4725218253213, but IA64 returns 36.34725217627852
# due to fused multiply-add instructions.
# due to fused multiply-add instructions.
--
replace_result
36.3
310176346904
36.3310176346905
-
114.87787186923326
-
114.87787186923313
36.33101763469053
36.33101763469059
36.33101763469043
36.33101763469059
--
replace_result
36.3
4725217627852
36.34725218253213
-
114.86854470090232
-
114.86854472054372
select
object_id
,
geometrytype
(
geo
),
ISSIMPLE
(
GEO
),
ASTEXT
(
centroid
(
geo
))
from
select
object_id
,
geometrytype
(
geo
),
ISSIMPLE
(
GEO
),
ASTEXT
(
centroid
(
geo
))
from
t1
where
object_id
=
85984
;
t1
where
object_id
=
85984
;
...
...
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