Marko Mäkelä
1dc2f35598
Merge 10.4 into 10.5
2022-12-13 14:39:18 +02:00
Daniel Black
8f3631d009
MDEV-30150 ST_GeomFromGeoJSON, 'geometry' before 'type: feature' error
...
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.
2022-12-09 08:49:43 +11:00
Oleksandr Byelkin
4519b42e61
Merge branch '10.4' into 10.5
2022-10-26 15:26:06 +02:00
Alexey Botchkov
77951dd710
MDEV-26161 crash in Gis_point::calculate_haversine
...
More checks for bad geometry data added.
2022-10-26 00:20:40 +04:00
Sergei Golubchik
e910dff81e
MDEV-26161 crash in Gis_point::calculate_haversine
...
return an error on invalid gis data
2022-10-25 21:26:51 +02:00
Marko Mäkelä
15dcb8bd3e
Merge 10.4 into 10.5
2021-07-02 13:02:26 +03:00
Sergei Petrunia
586870f9ef
Merge 10.2->10.3
2021-06-30 15:06:54 +03:00
Alexey Botchkov
8147d2e618
MDEV-25461 Assertion `je->state == JST_KEY' failed in Geometry::create_from_json.
...
Handle invalid GEOJSON-s in Geometry::create_from_json().
2021-06-28 11:53:33 +04:00
Marko Mäkelä
6c3e860cbf
Merge 10.4 into 10.5
2021-04-14 11:35:39 +03:00
Marko Mäkelä
450c017c2d
Merge 10.2 into 10.3
2021-04-09 14:32:06 +03:00
Marko Mäkelä
c6d0531cad
MDEV-13467 fixup: Improve error handling
2021-04-08 09:46:56 +03:00
Eugene Kosov
4c80dcda46
fix gcc optimized build
...
../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
2021-04-01 16:49:07 +03:00
Marko Mäkelä
5eae8c2742
Merge 10.4 into 10.5
2021-03-31 11:05:21 +03:00
Marko Mäkelä
d6d3d9ae2f
Merge 10.2 into 10.3
2021-03-31 08:01:03 +03:00
Anel Husakovic
6769d1a078
MDEV-13467: Feature request: Support for ST_Distance_Sphere()
...
- Cherry-pick 51e48b9f89
- vscode gitignore
- Thanks Robin Dupret for the review.
Reviewed by:daniel@mariadb.org
holyfoot@mariadb.com
2021-03-27 10:42:39 +01:00
Sergei Golubchik
25d9d2e37f
Merge branch 'bb-10.4-release' into bb-10.5-release
2021-02-15 16:43:15 +01:00
Sergei Golubchik
60ea09eae6
Merge branch '10.2' into 10.3
2021-02-01 13:49:33 +01:00
Alexey Botchkov
959dfac4d0
MDEV-19723 Assertion je->state == JST_KEY' failed while SELECT ST_GEOMFROMGEOJSON() and Assertion
!mysql_bin_log.is_open() || thd.is_current_stmt_binlog_format_row()'
...
The invalid GeoJSON case wasn't handled here.
2021-01-19 15:29:03 +04:00
Marko Mäkelä
5203bc10f1
Merge 10.4 into 10.5
2020-03-21 11:37:10 +02:00
Marko Mäkelä
44298e4dea
Merge 10.2 into 10.3
...
Also, clean up the test innodb_gis.geometry a little further.
2020-03-20 18:12:17 +02:00
Alexey Botchkov
a0ce62f804
MDEV-14057 InnoDB GIS tests fail.
...
Tests fixed.
MBR::Within() function fixed.
2020-03-18 13:55:21 +04:00
Alexander Barkov
f1e13fdc8d
MDEV-21581 Helper functions and methods for CHARSET_INFO
2020-01-28 12:29:23 +04:00
Alexander Barkov
e37d7a3715
MDEV-20006 Move geometry specific code in Field_blob::get_key_image() to Field_geom
2019-07-10 07:17:25 +04:00
Marko Mäkelä
be85d3e61b
Merge 10.2 into 10.3
2019-05-14 17:18:46 +03:00
Marko Mäkelä
26a14ee130
Merge 10.1 into 10.2
2019-05-13 17:54:04 +03:00
Vicențiu Ciorbaru
cb248f8806
Merge branch '5.5' into 10.1
2019-05-11 22:19:05 +03:00
Vicențiu Ciorbaru
5543b75550
Update FSF Address
...
* Update wrong zip-code
2019-05-11 21:29:06 +03:00
Sergei Golubchik
4e1d3f83b7
Merge branch '10.2' into 10.3
2019-03-29 19:41:41 +01:00
Sergei Golubchik
cc71e7501c
post-merge: -Werror fixes in 10.2
2019-03-29 10:58:25 +01:00
Monty
30ebc3ee9e
Add likely/unlikely to speed up execution
...
Added to:
- if (error)
- Lex
- sql_yacc.yy and sql_yacc_ora.yy
- In header files to alloc() calls
- Added thd argument to thd_net_is_killed()
2018-05-07 00:07:32 +03:00
Vladislav Vaintroub
6c279ad6a7
MDEV-15091 : Windows, 64bit: reenable and fix warning C4267 (conversion from 'size_t' to 'type', possible loss of data)
...
Handle string length as size_t, consistently (almost always:))
Change function prototypes to accept size_t, where in the past
ulong or uint were used. change local/member variables to size_t
when appropriate.
This fix excludes rocksdb, spider,spider, sphinx and connect for now.
2018-02-06 12:55:58 +00:00
Marko Mäkelä
7cb3520c06
Merge bb-10.2-ext into 10.3
2017-11-30 08:16:37 +02:00
Alexey Botchkov
24184938ad
MDEV-11881 Empty coordinates must be rejected in GeoJSON objects.
...
Check for the empty 'coordinates' array.
2017-11-14 13:36:50 +04:00
Alexander Barkov
835cbbcc7b
Merge remote-tracking branch 'origin/bb-10.2-ext' into 10.3
...
TODO: enable MDEV-13049 optimization for 10.3
2017-10-30 20:47:39 +04:00
Vladislav Vaintroub
dc93ce8dea
Windows : Fix truncation warnings in sql/
2017-10-10 06:19:50 +00:00
Sergei Golubchik
bb8e99fdc3
Merge branch 'bb-10.2-ext' into 10.3
2017-08-26 00:34:43 +02:00
Michael Widenius
4aaa38d26e
Enusure that my_global.h is included first
...
- Added sql/mariadb.h file that should be included first by files in sql
directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables
that must be done before my_global.h is included)
- Removed a lot of include my_global.h from include files
- Removed include's of some files that my_global.h automatically includes
- Removed duplicated include's of my_sys.h
- Replaced include my_config.h with my_global.h
2017-08-24 01:05:44 +02:00
Sergei Golubchik
cb1e76e4de
Merge branch '10.1' into 10.2
2017-08-17 11:38:34 +02:00
Sergei Golubchik
8e8d42ddf0
Merge branch '10.0' into 10.1
2017-08-08 10:18:43 +02:00
Alexey Botchkov
4ff6ebf76a
MDEV-12181 ST_AsGeoJSON argument does not limit decimals.
...
Options handling implemented for ST_AsGeoJSON.
2017-08-07 12:49:04 +04:00
Alexey Botchkov
11948d7586
MDEV-12180 ST_GeomFromGeoJSON option argument appears to have no effect.
...
Implement the 'option' argument for the ST_GeomFromGeoJSON.
2017-08-06 16:27:37 +04:00
Alexey Botchkov
7f5a8f176a
MDEV-12915 ST_Centroid does not return the same result than MySQL.
...
Calculation of the polygon's centroid fixed.
2017-08-01 09:52:56 +02:00
Vladislav Vaintroub
f2fe5cb282
Fix several compile warnings on Windows
2017-03-10 19:07:07 +00:00
Alexey Botchkov
1782102d97
MDEV-11042 Implement GeoJSON functions.
...
Typenames made into proper character case.
2017-01-24 22:39:55 +04:00
Alexey Botchkov
0d107a85b3
MDEV-11042 Implement GeoJSON functions.
...
ST_AsGeoJSON and ST_GeomFromGeoJSON functions implemented.
2017-01-24 02:29:04 +04:00
Sergei Golubchik
853077ad7e
Merge branch '10.0' into bb-10.1-merge
...
Conflicts:
.bzrignore
VERSION
cmake/plugin.cmake
debian/dist/Debian/control
debian/dist/Ubuntu/control
mysql-test/r/join_outer.result
mysql-test/r/join_outer_jcl6.result
mysql-test/r/null.result
mysql-test/r/old-mode.result
mysql-test/r/union.result
mysql-test/t/join_outer.test
mysql-test/t/null.test
mysql-test/t/old-mode.test
mysql-test/t/union.test
packaging/rpm-oel/mysql.spec.in
scripts/mysql_config.sh
sql/ha_ndbcluster.cc
sql/ha_ndbcluster_binlog.cc
sql/ha_ndbcluster_cond.cc
sql/item_cmpfunc.h
sql/lock.cc
sql/sql_select.cc
sql/sql_show.cc
sql/sql_update.cc
sql/sql_yacc.yy
storage/innobase/buf/buf0flu.cc
storage/innobase/fil/fil0fil.cc
storage/innobase/include/srv0srv.h
storage/innobase/lock/lock0lock.cc
storage/tokudb/CMakeLists.txt
storage/xtradb/buf/buf0flu.cc
storage/xtradb/fil/fil0fil.cc
storage/xtradb/include/srv0srv.h
storage/xtradb/lock/lock0lock.cc
support-files/mysql.spec.sh
2014-12-02 22:25:16 +01:00
Alexey Botchkov
d0d6284cab
MDEV-4045 Missing OGC Spatial functions.
...
Missing GIS functions added:
IsRing()
PointOnSurface
PointOnSurface
Relate
Distance
Intersection
ConvexHull
Other old OpenGis standard inconsistencies fixed.
2014-11-28 00:29:37 +04:00
Sergei Golubchik
3495801e2e
5.5 merge
2014-11-19 17:23:39 +01:00
Sergei Golubchik
84fc27fbef
5.3 merge
2014-11-18 17:36:51 +01:00
Alexey Botchkov
c9742ceac5
MDEV-6883 ST_WITHIN crashes server if (0,0) is matched to POLYGON((0 0)).
...
Fixed the case when a polygon contains a single-point ring.
2014-11-15 21:30:16 +04:00