diff --git a/pgtap/planar/isPlanar/edge_cases.pg b/pgtap/planar/isPlanar/edge_cases.pg index c6a50a831e..2b70351790 100644 --- a/pgtap/planar/isPlanar/edge_cases.pg +++ b/pgtap/planar/isPlanar/edge_cases.pg @@ -50,8 +50,14 @@ PREPARE zeroEdgeTest2 AS SELECT * FROM pgr_isPlanar('q1'); -RETURN QUERY -SELECT throws_ok('zeroEdgeTest2','XX000','No edges found', '2: throws, since graph is empty'); +IF min_version('3.6.2') THEN + RETURN QUERY + SELECT throws_ok('zeroEdgeTest2','XX000','No edges found', '2: throws, since graph is empty'); +ELSE + RETURN QUERY + SELECT set_eq('zeroEdgeTest2',$$VALUES('f'::bool) $$, '2: False, since vertex does not exist'); +END IF; + -- vertex not present in graph test @@ -67,8 +73,14 @@ PREPARE vertexNotPresent4 AS SELECT * FROM pgr_isPlanar('q3'); -RETURN QUERY -SELECT throws_ok('vertexNotPresent4','XX000','No edges found', '2: throws, since graph is empty'); +IF min_version('3.6.2') THEN + RETURN QUERY + SELECT throws_ok('vertexNotPresent4','XX000','No edges found', '2: throws, since graph is empty'); +ELSE + RETURN QUERY + SELECT set_eq('vertexNotPresent4',$$VALUES('f'::bool) $$, '4:False, Vertex not present in graph'); +END IF; + -- 1 vertex test