[MDEV-15479] Empty string is erroneously allowed as a GEOMETRY column value Created: 2018-03-06  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: GIS
Affects Version/s: 5.5, 10.0, 10.1, 10.2, 10.3
Fix Version/s: 10.4

Type: Bug Priority: Major
Reporter: Alexander Barkov Assignee: Alexey Botchkov
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-15497 Wrong empty value in a GEOMETRY colum... Closed

 Description   

DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (id INT, a GEOMETRY);
INSERT INTO t1 VALUES (10,'');
SELECT * FROM t1;

+------+------+
| id   | a    |
+------+------+
|   10 |      |
+------+------+

Empty string is not a valid GEOMETRY value, it should be prohibited.


Generated at Thu Feb 08 08:21:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.