[postgis-tickets] r17005 - Upgrade script generator fix

Darafei komzpa at gmail.com
Mon Nov 12 11:17:28 PST 2018


Author: komzpa
Date: 2018-11-12 23:17:28 -0800 (Mon, 12 Nov 2018)
New Revision: 17005

Modified:
   trunk/postgis/postgis.sql.in
   trunk/utils/postgis_proc_upgrade.pl
Log:
Upgrade script generator fix

References #4230



Modified: trunk/postgis/postgis.sql.in
===================================================================
--- trunk/postgis/postgis.sql.in	2018-11-12 09:16:08 UTC (rev 17004)
+++ trunk/postgis/postgis.sql.in	2018-11-13 07:17:28 UTC (rev 17005)
@@ -908,11 +908,11 @@
 	FOR TYPE geometry USING GIST AS
 	STORAGE 	gidx,
 	OPERATOR        3        &&&	,
-	-- Availability: 2.5.0
+	-- Availability: 3.0.0
 	OPERATOR        6        ~~=	,
-	-- Availability: 2.5.0
+	-- Availability: 3.0.0
 	OPERATOR        7        ~~	,
-	-- Availability: 2.5.0
+	-- Availability: 3.0.0
 	OPERATOR        8        @@	,
 	-- Availability: 2.2.0
 	OPERATOR        13       <<->> FOR ORDER BY pg_catalog.float_ops,

Modified: trunk/utils/postgis_proc_upgrade.pl
===================================================================
--- trunk/utils/postgis_proc_upgrade.pl	2018-11-12 09:16:08 UTC (rev 17004)
+++ trunk/utils/postgis_proc_upgrade.pl	2018-11-13 07:17:28 UTC (rev 17005)
@@ -402,7 +402,7 @@
 					chop $subdefn;
 					$subdefn =~ s/[,;]$//; # strip ending comma or semicolon
 					# argument types must be specified in ALTER OPERATOR FAMILY
-					if ( $subdefn =~ m/\s+(OPERATOR.*)(FOR.*)/ )
+					if ( $subdefn =~ m/\s+(OPERATOR.*)/ )
 					{
 						$subdefn = $1.'('.$opctype.','.$opctype.') '.$2;
 					}



More information about the postgis-tickets mailing list