[MDEV-21401] 'INSERT ST_GeomFromText(GEOMETRYCOLLECTION ' cause ERROR 1048 (23000): Column SHAPE cannot be null Created: 2019-12-29 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | GIS |
| Affects Version/s: | 5.5, 10.1, 10.3.9, 10.4.11, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hiroshi Miura | Assignee: | Alexey Botchkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Docker image: mariadb:10.3.9 |
||
| Description |
|
When creating geospatial table, insert statement cause column is not null.
This is an issue in feature test case of GDAL project, which MariaDB fails. |
| Comments |
| Comment by Hiroshi Miura [ 2019-12-29 ] | |||||||
|
Similar but different case such as A same case with MySQL8.0.18 works. CREATE TABLE `ogr_mysql_28_15` ( OGR_FID INT UNIQUE NOT NULL AUTO_INCREMENT, SHAPE GEOMETRY NOT NULL) Trying same query with MySQL 8 also fails in MariaDB. mysql> INSERT INTO `ogr_mysql_28_15` (`SHAPE` ) VALUES (ST_GeomFromText('GEOMETRYCOLLECTION (POINT (4 6),GEOMETRYCOLLECTION (POINT (4 6),LINESTRING (4 6,7 10)))',4326, 'axis-order=long-lat') ); In MySQL8, droping SRID such as | |||||||
| Comment by Hiroshi Miura [ 2019-12-29 ] | |||||||
|
I can reproduce it with mariadb 10.4.11, docker official image. | |||||||
| Comment by Elena Stepanova [ 2020-01-12 ] | |||||||
|
Thanks for the report and test case.
on all of MariaDB 5.5-10.5. MySQL 5.7 returns something that isn't null. | |||||||
| Comment by Hiroshi Miura [ 2020-03-05 ] | |||||||
|
This issue is stale because it has been open 50 days with no activity after confirmation. |