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
84fc27fb
Commit
84fc27fb
authored
Nov 18, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.3 merge
parents
f3a800ef
c9742cea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
mysql-test/r/gis.result
mysql-test/r/gis.result
+6
-0
mysql-test/t/gis.test
mysql-test/t/gis.test
+5
-0
sql/spatial.cc
sql/spatial.cc
+7
-1
No files found.
mysql-test/r/gis.result
View file @
84fc27fb
...
...
@@ -1546,6 +1546,12 @@ Warnings:
Warning 1300 Invalid utf8 character string: 'E043'
Warning 1300 Invalid utf8 character string: 'E043'
drop table t1;
#
# MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0))
#
select st_within(GeomFromText('Polygon((0 0))'), Point(0,0));
st_within(GeomFromText('Polygon((0 0))'), Point(0,0))
1
End of 5.3 tests
#
# Bug#11908153: CRASH AND/OR VALGRIND ERRORS IN FIELD_BLOB::GET_KEY_IMAGE
...
...
mysql-test/t/gis.test
View file @
84fc27fb
...
...
@@ -1401,6 +1401,11 @@ insert into t1 values(geomfromtext("POINT(0 9.2233720368548e18)"));
select
equals
(
`a`
,
convert
(
`a`
using
utf8
))
from
`t1`
;
drop
table
t1
;
--
echo
#
--
echo
# MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0))
--
echo
#
select
st_within
(
GeomFromText
(
'Polygon((0 0))'
),
Point
(
0
,
0
));
--
echo
End
of
5.3
tests
--
echo
#
...
...
sql/spatial.cc
View file @
84fc27fb
...
...
@@ -1237,11 +1237,15 @@ int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const
trn
->
start_ring
();
get_point
(
&
first_x
,
&
first_y
,
data
);
data
+=
POINT_DATA_SIZE
;
n_points
--
;
prev_x
=
first_x
;
prev_y
=
first_y
;
if
(
trn
->
add_point
(
first_x
,
first_y
))
return
1
;
if
(
--
n_points
==
0
)
goto
single_point_ring
;
while
(
--
n_points
)
{
double
x
,
y
;
...
...
@@ -1266,6 +1270,8 @@ int Gis_polygon::store_shapes(Gcalc_shape_transporter *trn) const
return
1
;
}
data
+=
POINT_DATA_SIZE
;
single_point_ring:
trn
->
complete_ring
();
}
...
...
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