]> granicus.if.org Git - postgis/commitdiff
Allow function definitions to end with '$$ LANGUAGE' (#1365)
authorSandro Santilli <strk@keybit.net>
Tue, 13 Dec 2011 09:59:10 +0000 (09:59 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 13 Dec 2011 09:59:10 +0000 (09:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8379 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_proc_upgrade.pl

index b7919e10eb68e6aac46445ca2352505ed644f10b..ba912e8d346a94a1ce659775d7f982214506859f 100755 (executable)
@@ -169,7 +169,7 @@ while(<INPUT>)
                while(<INPUT>)
                {
                        print $_;
-                       $endfunc = 1 if /^\s*LANGUAGE /;
+                       $endfunc = 1 if /^\s*(\$\$\s*)?LANGUAGE /;
                        last if ( $endfunc && /\;/ );
                }
        }