]> 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 18:41:25 +0000 (18:41 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 9 Jan 2018 18:41:25 +0000 (18:41 +0000)
A single ending semicolon is enough to terminate the statement

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

utils/postgis_proc_upgrade.pl

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