summaryrefslogtreecommitdiff
path: root/sql/spatial.h
diff options
context:
space:
mode:
authorAlexey Botchkov <holyfoot@askmonty.org>2017-11-14 13:36:50 +0400
committerAlexey Botchkov <holyfoot@askmonty.org>2017-11-14 13:36:50 +0400
commit24184938ad9954f25c082a1afd74a053a8ab6d8c (patch)
tree80ed9630ac2b1c0fd10be21e7317b76b8d40c769 /sql/spatial.h
parent56326528044a8b8c688f3223cf88634403d40da2 (diff)
downloadmariadb-git-24184938ad9954f25c082a1afd74a053a8ab6d8c.tar.gz
MDEV-11881 Empty coordinates must be rejected in GeoJSON objects.
Check for the empty 'coordinates' array.
Diffstat (limited to 'sql/spatial.h')
-rw-r--r--sql/spatial.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/spatial.h b/sql/spatial.h
index 78e850dc2d7..901544b6916 100644
--- a/sql/spatial.h
+++ b/sql/spatial.h
@@ -256,6 +256,7 @@ public:
GEOJ_TOO_FEW_POINTS= 2,
GEOJ_POLYGON_NOT_CLOSED= 3,
GEOJ_DIMENSION_NOT_SUPPORTED= 4,
+ GEOJ_EMPTY_COORDINATES= 5,
};