]> granicus.if.org Git - postgis/commitdiff
Avoid the short-circuite of ST_Equals while running interrupt tests
authorSandro Santilli <strk@keybit.net>
Tue, 4 Aug 2015 09:21:19 +0000 (09:21 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 4 Aug 2015 09:21:19 +0000 (09:21 +0000)
See #3226

git-svn-id: http://svn.osgeo.org/postgis/trunk@13871 b70326c6-7e19-0410-871a-916f4a2858ee

regress/interrupt_relate.sql

index c1cbff415df0920c4ae1cd55b3d93d50f52c1def..b62042408a1b3140a9f2873d782361b653fa1901 100644 (file)
@@ -47,7 +47,9 @@ SELECT _timecheck('coveredby', '200ms');
 select ST_Crosses(g,g) from _inputs WHERE id = 1; -- 6+ seconds
 SELECT _timecheck('crosses', '200ms');
 
-select ST_Equals(g,g) from _inputs WHERE id = 1; -- 6+ seconds
+-- NOTE: we're reversing one of the operands to avoid the
+--       short-circuit described in #3226
+select ST_Equals(g,st_reverse(g)) from _inputs WHERE id = 1; -- 6+ seconds
 SELECT _timecheck('equals', '200ms');
 
 select ST_Intersects(g,g) from _inputs WHERE id = 1; -- 6+ seconds