]> granicus.if.org Git - postgis/commitdiff
Automate test for toTopoGeom usage with custom search_path (#1763)
authorSandro Santilli <strk@keybit.net>
Thu, 12 Apr 2012 10:28:30 +0000 (10:28 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 12 Apr 2012 10:28:30 +0000 (10:28 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9636 b70326c6-7e19-0410-871a-916f4a2858ee

topology/test/regress/totopogeom.sql
topology/test/regress/totopogeom_expected

index ff44efa08053dbe794f196f5a9f211f0c623560c..d6d5b06bf4c6039371659f9497067fbf3e2dc17d 100644 (file)
@@ -130,6 +130,13 @@ with inp as ( select
 tg as ( select totopogeom(g, 'tt', 5) as g from inp )
 select 'tolerance_0', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;
 
+-- Test usage with custom search_path (#1763)
+set search_path to "public";
+with inp as ( select 'POINT(-100 -100.5)'::geometry as g),
+tg as ( select topology.totopogeom(g, 'tt', 1) as g from inp )
+select 'custom_search_path', ST_HausdorffDistance(inp.g, tg.g::geometry) FROM inp, tg;
+reset search_path;
+
 
 DROP TABLE tt.f_coll;
 DROP TABLE tt.f_areal;
index ad420743692455f960c780ea39385a250eda5abf..92f08434d85a55faddda6be125266fde2a11a6f2 100644 (file)
@@ -32,4 +32,5 @@ GEOMETRYCOLLECTION EMPTY
 tolerance_1|0.5
 tolerance_topo_1|0.5
 tolerance_0|0
+custom_search_path|0
 Topology 'tt' dropped