[SCM] PostGIS branch master updated. 3.6.0rc2-50-g3db3470a8
git at osgeo.org
git at osgeo.org
Wed Sep 17 12:25:14 PDT 2025
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 3db3470a87e7b960ca92ba52789e408c835f88d7 (commit)
from 93113f80702b23e024bb4a729103c46e02d41a84 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 3db3470a87e7b960ca92ba52789e408c835f88d7
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Sep 17 12:25:07 2025 -0700
Add regression test for #5987
diff --git a/regress/core/tickets.sql b/regress/core/tickets.sql
index 65810319b..46490a912 100644
--- a/regress/core/tickets.sql
+++ b/regress/core/tickets.sql
@@ -1606,3 +1606,10 @@ SELECT f_table_schema, f_table_name, f_geometry_column, coord_dimension, srid, t
FROM geometry_columns WHERE f_table_name IN ('test5829', 'test5978')
ORDER BY f_table_name, f_geometry_column;
DROP TABLE IF EXISTS test5829, test5978;
+
+-- -------------------------------------------------------------------------------------
+-- #5987, ST_GeometryN broken on unitary geoms
+CREATE TABLE test5987 (geom geometry(Geometry,4326));
+INSERT INTO test5987 VALUES('LINESTRING(20 20,20.1 20,20.2 19.9)'::geometry);
+SELECT '#5987', ST_AsText(geom), ST_AsText(ST_GeometryN(geom, 1)) FROM test5987;
+DROP TABLE IF EXISTS test5987;
diff --git a/regress/core/tickets_expected b/regress/core/tickets_expected
index 61127d4da..dd5538e62 100644
--- a/regress/core/tickets_expected
+++ b/regress/core/tickets_expected
@@ -490,3 +490,4 @@ public.test5978.geometry SRID:4326 TYPE:POINT DIMS:2
public|test5829|geom|2|4326|GEOMETRY
public|test5978|geometry|2|4326|POINT
public|test5978|shape|2|4326|POINT
+#5987|LINESTRING(20 20,20.1 20,20.2 19.9)|LINESTRING(20 20,20.1 20,20.2 19.9)
-----------------------------------------------------------------------
Summary of changes:
regress/core/tickets.sql | 7 +++++++
regress/core/tickets_expected | 1 +
2 files changed, 8 insertions(+)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list