[postgis-tickets] r17733 - Fix perl syntax

Sandro Santilli strk at kbt.io
Tue Aug 20 02:24:39 PDT 2019


Author: strk
Date: 2019-08-20 02:24:39 -0700 (Tue, 20 Aug 2019)
New Revision: 17733

Modified:
   trunk/regress/run_test.pl
Log:
Fix perl syntax

Can't "last" outside a loop block ...

Modified: trunk/regress/run_test.pl
===================================================================
--- trunk/regress/run_test.pl	2019-08-20 09:03:46 UTC (rev 17732)
+++ trunk/regress/run_test.pl	2019-08-20 09:24:39 UTC (rev 17733)
@@ -1367,7 +1367,7 @@
 
 	if ( $OPT_WITH_SFCGAL )
 	{
-		do {
+		do {{
 			my $sql = "CREATE EXTENSION postgis_sfcgal";
 			if ( $OPT_UPGRADE_FROM ) {
 				if ( semver_lessthan($OPT_UPGRADE_FROM, "2.2.0") )
@@ -1387,7 +1387,7 @@
 				fail "Error encountered creating EXTENSION POSTGIS_SFCGAL", $REGRESS_LOG;
 				die;
 			}
-		} while (0);
+		}} while (0);
 	}
 
  	return 1;



More information about the postgis-tickets mailing list