From: Sandro Santilli Date: Tue, 9 Jan 2018 18:36:18 +0000 (+0000) Subject: Do not assume CREATE OPERATOR CLASS needs to end with ');' X-Git-Tag: 2.4.3rc1~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e0290bcec561e0a49484dfef8502375b1bc0b12e;p=postgis Do not assume CREATE OPERATOR CLASS needs to end with ');' A single ending semicolon is enough to terminate the statement git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16240 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl index cc8d3392f..a83af4282 100755 --- a/utils/postgis_proc_upgrade.pl +++ b/utils/postgis_proc_upgrade.pl @@ -412,7 +412,7 @@ EOF } $subcomment = ''; } - last if /\);/; + last if /;$/; } $opctype =~ tr/A-Z/a-z/; $opcidx =~ tr/A-Z/a-z/;