MySQL 5.7: Invalid GIS data
问题 The following query seems to be working just fine under MySQL 5.6 (returns 0 for the Area), but on MySQL 5.7 it returns an error saying ERROR 3037 (22023): Invalid GIS data provided to function st_area. . SELECT ST_Area(GeomFromText('POLYGON((0 0, 0 0, 0 0, 0 0, 0 0))')) Is it possible to either ignore the error and return zero, or create a query to filter any such geometries from the query before running it? A very simple schema and query example would be: CREATE TABLE `polygons` (`id` int,