Skip to content

Commit

Permalink
test: rewrite test for CG_StraightSkeleton to compare version. Compar…
Browse files Browse the repository at this point in the history
…e string is not safe in this context.
  • Loading branch information
lbartoletti committed Feb 20, 2024
1 parent 86f1e9a commit 2921257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sfcgal/regress/regress_sfcgal.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SELECT 'ST_Orientation_2', ST_Orientation(ST_ForceRHR('POLYGON((0 0,0 1,1 1,1 0,
SELECT 'ST_MinkowskiSum', ST_AsText(ST_MinkowskiSum('LINESTRING(0 0,4 0)','POLYGON((0 0,1 0,1 1,0 1,0 0))'));
SELECT 'CG_StraightSkeleton', ST_AsText(CG_StraightSkeleton('POLYGON((1 1,2 1,2 2,1 2,1 1))'));
SELECT 'CG_StraightSkeletonUseMDistance',
CASE WHEN postgis_sfcgal_version() >= '1.3.8'
CASE WHEN string_to_array(postgis_sfcgal_version(), '.')::int[] >= string_to_array('1.3.8', '.')::int[]
THEN
ST_AsText(CG_StraightSkeleton('POLYGON((0 0,1 0,1 1,0 1,0 0))', true))
ELSE
Expand Down

0 comments on commit 2921257

Please sign in to comment.