Skip to content

Commit 1e1f95d

Browse files
authored
Fix e2e-other/postgis-cluster KUTTL (CrunchyData#3628)
Problem: PostGIS < v3.1 had trouble parsing result from ST_AsGeoJSON with ST_AsText function. Solution: Remove ST_AsText and check JSON directly Issue: [sc-18159]
1 parent f060545 commit 1e1f95d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testing/kuttl/e2e-other/postgis-cluster/01--psql-connect.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ spec:
122122
DECLARE
123123
result text;
124124
BEGIN
125-
SELECT ST_AsText(ST_AsGeoJSON('SRID=4326;POINT(-118.4079 33.9434)'::geography)) INTO result;
126-
ASSERT result = 'POINT(-118.4079 33.9434)', 'GeoJSON check failed';
125+
SELECT ST_AsGeoJSON('SRID=4326;POINT(-118.4079 33.9434)'::geography) INTO result;
126+
ASSERT result = '{\"type\":\"Point\",\"coordinates\":[-118.4079,33.9434]}', FORMAT('GeoJSON check failed, got %L', result);
127127
END \$\$;" 2>&1)
128128
129129
if [[ "$RESULT" == *"ERROR"* ]]; then

0 commit comments

Comments
 (0)