Bug #73871 | CREATE SPATIAL INDEX fails to flag an error for invalid geometry data | ||
---|---|---|---|
Submitted: | 10 Sep 2014 8:00 | Modified: | 21 Apr 2015 13:11 |
Reporter: | Marko Mäkelä | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.7.5 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Sep 2014 8:00]
Marko Mäkelä
[10 Sep 2014 8:03]
Marko Mäkelä
Posted by developer: I think that we should handle this properly, if we intend to allow spatial indexes to be created on tables that were originally created in MySQL 5.6 or earlier. The geometry columns can contain any invalid data, and spatial indexes should not be allowed to be built on invalid data. The spatial index is like an additional constraint.
[21 Apr 2015 13:11]
Paul DuBois
Noted in 5.7.8, 5.8.0 changelogs. If a spatial column contained invalid spatial data, creating a SPATIAL index on the column failed to produce an error.
[4 Jun 2018 16:31]
MySQL Verification Team
https://bugs.mysql.com/bug.php?id=91105 marked as duplicate of this one.