From 5f49cbcf970d850abde521d3ca0c887b11fb9cec Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sun, 25 Sep 2016 06:10:51 +0000 Subject: [PATCH] Test to trap FreeBSD crash on small tables. References #2985 for PostGIS 2.3.0 git-svn-id: http://svn.osgeo.org/postgis/trunk@15138 b70326c6-7e19-0410-871a-916f4a2858ee --- regress/tickets.sql | 7 +++++++ regress/tickets_expected | 1 + 2 files changed, 8 insertions(+) diff --git a/regress/tickets.sql b/regress/tickets.sql index 9672c6759..44fca10ed 100644 --- a/regress/tickets.sql +++ b/regress/tickets.sql @@ -880,6 +880,13 @@ SELECT '#2870', ST_Summary('Point(151.215289 -33.856885)'::geometry::bytea::geog SELECT '#2956', st_astwkb(null,0) is null; +-- #2965 -- +CREATE TABLE test_analyze_crash (a integer not null, g geometry); +INSERT INTO test_analyze_crash values (1, '0102000020E6100000010000006D1092A47FF33440AD4ECD9B00334A40'); +ANALYZE test_analyze_crash; +SELECT '#2965', ST_AsText(g) FROM test_analyze_crash; +DROP TABLE test_analyze_crash; + -- #2996 -- WITH input AS (SELECT 'SRID=4326;POLYGON((26426 65078,26531 65242,26075 65136,26096 65427,26426 65078))'::geometry AS geom), diff --git a/regress/tickets_expected b/regress/tickets_expected index b5bdf4814..787e5d7f8 100644 --- a/regress/tickets_expected +++ b/regress/tickets_expected @@ -269,6 +269,7 @@ ERROR: invalid GML representation #2788|f|Self-intersection|POINT(1 1) #2870|Point[GS] #2956|t +#2965|LINESTRING(20.9511664253809 52.3984560730436) #2996|t #3119a|121 #3119b|291 -- 2.40.0