<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/mariadb-git.git/sql/spatial.cc, branch 10.4</title>
<subtitle>github.com: MariaDB/server.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/'/>
<entry>
<title>MDEV-30150 ST_GeomFromGeoJSON, 'geometry' before 'type: feature' error</title>
<updated>2022-12-08T21:49:43+00:00</updated>
<author>
<name>Daniel Black</name>
<email>daniel@mariadb.org</email>
</author>
<published>2022-12-03T04:09:48+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=8f3631d0096ceecc21f2879a9558fd9242f09f8c'/>
<id>8f3631d0096ceecc21f2879a9558fd9242f09f8c</id>
<content type='text'>
The geometry type requires Type:"Feature" but the feature need
not be first in the JSON structure.

Adjust code to return an error if geometry isn't a JSON object,
but continue parsing searching for Type: "Feature" to trigger
the geometry parsing.

Thanks Derick Magnusen for the bug report.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The geometry type requires Type:"Feature" but the feature need
not be first in the JSON structure.

Adjust code to return an error if geometry isn't a JSON object,
but continue parsing searching for Type: "Feature" to trigger
the geometry parsing.

Thanks Derick Magnusen for the bug report.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-26161 crash in Gis_point::calculate_haversine</title>
<updated>2022-10-25T20:20:40+00:00</updated>
<author>
<name>Alexey Botchkov</name>
<email>holyfoot@askmonty.org</email>
</author>
<published>2022-10-25T19:48:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=77951dd7102381385093209a1f2597d28e39900a'/>
<id>77951dd7102381385093209a1f2597d28e39900a</id>
<content type='text'>
More checks for bad geometry data added.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More checks for bad geometry data added.
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-26161 crash in Gis_point::calculate_haversine</title>
<updated>2022-10-25T19:26:51+00:00</updated>
<author>
<name>Sergei Golubchik</name>
<email>serg@mariadb.org</email>
</author>
<published>2022-10-25T19:21:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=e910dff81ebaa84d0028705d20a40abe8f779afd'/>
<id>e910dff81ebaa84d0028705d20a40abe8f779afd</id>
<content type='text'>
return an error on invalid gis data
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
return an error on invalid gis data
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge 10.2-&gt;10.3</title>
<updated>2021-06-30T12:06:54+00:00</updated>
<author>
<name>Sergei Petrunia</name>
<email>psergey@askmonty.org</email>
</author>
<published>2021-06-30T12:06:54+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=586870f9effa48831fda2590f2aee2b95b30be39'/>
<id>586870f9effa48831fda2590f2aee2b95b30be39</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-25461 Assertion `je-&gt;state == JST_KEY' failed in Geometry::create_from_json.</title>
<updated>2021-06-28T07:53:33+00:00</updated>
<author>
<name>Alexey Botchkov</name>
<email>holyfoot@askmonty.org</email>
</author>
<published>2021-06-28T07:52:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=8147d2e6183a1a4a4f3db2884966f5da2d17678c'/>
<id>8147d2e6183a1a4a4f3db2884966f5da2d17678c</id>
<content type='text'>
Handle invalid GEOJSON-s in Geometry::create_from_json().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Handle invalid GEOJSON-s in Geometry::create_from_json().
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge 10.2 into 10.3</title>
<updated>2021-04-09T11:32:06+00:00</updated>
<author>
<name>Marko Mäkelä</name>
<email>marko.makela@mariadb.com</email>
</author>
<published>2021-04-09T11:32:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=450c017c2d9e490d92c949d5164b4a99b6b3f5db'/>
<id>450c017c2d9e490d92c949d5164b4a99b6b3f5db</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-13467 fixup: Improve error handling</title>
<updated>2021-04-08T06:46:56+00:00</updated>
<author>
<name>Marko Mäkelä</name>
<email>marko.makela@mariadb.com</email>
</author>
<published>2021-04-08T06:46:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=c6d0531cad096e6b85ee34209f1b083e6f77a42a'/>
<id>c6d0531cad096e6b85ee34209f1b083e6f77a42a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>fix gcc optimized build</title>
<updated>2021-04-01T13:49:07+00:00</updated>
<author>
<name>Eugene Kosov</name>
<email>claprix@yandex.ru</email>
</author>
<published>2021-04-01T13:49:07+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=4c80dcda46e4183df00f9fdb35ed08975e55e8f8'/>
<id>4c80dcda46e4183df00f9fdb35ed08975e55e8f8</id>
<content type='text'>
../sql/spatial.cc: In member function ‘double Gis_point::calculate_haversine(const Geometry*, double, int*)’:
../sql/spatial.cc:1093:45: error: ‘y1r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1093 |   res= 2*sphere_radius*asin((sqrt(dlat + cos(y1r)*cos(y2r)*dlong)));
      |                                          ~~~^~~~~
../sql/spatial.cc:1092:20: error: ‘x1r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1092 |   dlong=  sin((x2r - x1r)/2)*sin((x2r - x1r)/2);
      |               ~~~~~^~~~~~
../sql/spatial.cc:1093:54: error: ‘y2r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1093 |   res= 2*sphere_radius*asin((sqrt(dlat + cos(y1r)*cos(y2r)*dlong)));
      |                                                   ~~~^~~~~
../sql/spatial.cc:1092:20: error: ‘x2r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1092 |   dlong=  sin((x2r - x1r)/2)*sin((x2r - x1r)/2);
      |               ~~~~~^~~~~~
c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
../sql/spatial.cc: In member function ‘double Gis_point::calculate_haversine(const Geometry*, double, int*)’:
../sql/spatial.cc:1093:45: error: ‘y1r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1093 |   res= 2*sphere_radius*asin((sqrt(dlat + cos(y1r)*cos(y2r)*dlong)));
      |                                          ~~~^~~~~
../sql/spatial.cc:1092:20: error: ‘x1r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1092 |   dlong=  sin((x2r - x1r)/2)*sin((x2r - x1r)/2);
      |               ~~~~~^~~~~~
../sql/spatial.cc:1093:54: error: ‘y2r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1093 |   res= 2*sphere_radius*asin((sqrt(dlat + cos(y1r)*cos(y2r)*dlong)));
      |                                                   ~~~^~~~~
../sql/spatial.cc:1092:20: error: ‘x2r’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
 1092 |   dlong=  sin((x2r - x1r)/2)*sin((x2r - x1r)/2);
      |               ~~~~~^~~~~~
c
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge 10.2 into 10.3</title>
<updated>2021-03-31T05:01:03+00:00</updated>
<author>
<name>Marko Mäkelä</name>
<email>marko.makela@mariadb.com</email>
</author>
<published>2021-03-31T05:01:03+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=d6d3d9ae2ffb1df8eebfe0c922394bbc7b12e4ed'/>
<id>d6d3d9ae2ffb1df8eebfe0c922394bbc7b12e4ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>MDEV-13467: Feature request: Support for ST_Distance_Sphere()</title>
<updated>2021-03-27T09:42:39+00:00</updated>
<author>
<name>Anel Husakovic</name>
<email>anel@mariadb.org</email>
</author>
<published>2020-10-29T00:40:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/mariadb-git.git/commit/?id=6769d1a0782f140dcd12c9ced6fda34ac0e41d85'/>
<id>6769d1a0782f140dcd12c9ced6fda34ac0e41d85</id>
<content type='text'>
- Cherry-pick 51e48b9f8981 - vscode gitignore
- Thanks Robin Dupret for the review.

Reviewed by:daniel@mariadb.org
            holyfoot@mariadb.com
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Cherry-pick 51e48b9f8981 - vscode gitignore
- Thanks Robin Dupret for the review.

Reviewed by:daniel@mariadb.org
            holyfoot@mariadb.com
</pre>
</div>
</content>
</entry>
</feed>
