]> granicus.if.org Git - postgis/commitdiff
Do not assume CREATE OPERATOR CLASS needs to end with ');'
authorSandro Santilli <strk@kbt.io>
Tue, 9 Jan 2018 15:04:03 +0000 (15:04 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 9 Jan 2018 15:04:03 +0000 (15:04 +0000)
A single ending semicolon is enough to terminate the statement

git-svn-id: http://svn.osgeo.org/postgis/trunk@16231 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_proc_upgrade.pl

index cc8d3392f77a6874525ce2728acb3bafc5ebdce6..a83af4282e2866adcce48ed3ec24e78846ab1630 100755 (executable)
@@ -412,7 +412,7 @@ EOF
                                }
                                $subcomment = '';
                        }
-                       last if /\);/;
+                       last if /;$/;
                }
                $opctype =~ tr/A-Z/a-z/;
                $opcidx =~ tr/A-Z/a-z/;