From: Sandro Santilli Date: Tue, 13 Dec 2011 09:59:10 +0000 (+0000) Subject: Allow function definitions to end with '$$ LANGUAGE' (#1365) X-Git-Tag: 2.0.0alpha1~494 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91a9f373bf775dbb21c3c3dd624183ccd1ab2613;p=postgis Allow function definitions to end with '$$ LANGUAGE' (#1365) git-svn-id: http://svn.osgeo.org/postgis/trunk@8379 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl index b7919e10e..ba912e8d3 100755 --- a/utils/postgis_proc_upgrade.pl +++ b/utils/postgis_proc_upgrade.pl @@ -169,7 +169,7 @@ while() while() { print $_; - $endfunc = 1 if /^\s*LANGUAGE /; + $endfunc = 1 if /^\s*(\$\$\s*)?LANGUAGE /; last if ( $endfunc && /\;/ ); } }