[postgis-tickets] r16231 - Do not assume CREATE OPERATOR CLASS needs to end with '); '

Sandro Santilli strk at kbt.io
Tue Jan 9 07:04:04 PST 2018


Author: strk
Date: 2018-01-09 07:04:03 -0800 (Tue, 09 Jan 2018)
New Revision: 16231

Modified:
   trunk/utils/postgis_proc_upgrade.pl
Log:
Do not assume CREATE OPERATOR CLASS needs to end with ');'

A single ending semicolon is enough to terminate the statement

Modified: trunk/utils/postgis_proc_upgrade.pl
===================================================================
--- trunk/utils/postgis_proc_upgrade.pl	2018-01-09 14:06:31 UTC (rev 16230)
+++ trunk/utils/postgis_proc_upgrade.pl	2018-01-09 15:04:03 UTC (rev 16231)
@@ -412,7 +412,7 @@
 				}
 				$subcomment = '';
 			}
-			last if /\);/;
+			last if /;$/;
 		}
 		$opctype =~ tr/A-Z/a-z/;
 		$opcidx =~ tr/A-Z/a-z/;



More information about the postgis-tickets mailing list