]> granicus.if.org Git - postgis/commitdiff
Test to trap FreeBSD crash on small tables.
authorRegina Obe <lr@pcorp.us>
Sun, 25 Sep 2016 06:10:51 +0000 (06:10 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 25 Sep 2016 06:10:51 +0000 (06:10 +0000)
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
regress/tickets_expected

index 9672c6759f20c9496030e7080ab4b0ccb66e3a6b..44fca10edac7803701e548e4e413815a97822acf 100644 (file)
@@ -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),
index b5bdf4814ddbb0d7b814f90333e226e395bde5d4..787e5d7f8dcd660cc6bb859e7a002780b7935c0c 100644 (file)
@@ -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