From: Sandro Santilli Date: Mon, 13 Feb 2012 17:47:34 +0000 (+0000) Subject: Fix regexp renaming srid enforcement check X-Git-Tag: 2.0.0alpha5~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f9e3348459321793e884a2c1b5d69a16e1ec13b;p=postgis Fix regexp renaming srid enforcement check git-svn-id: http://svn.osgeo.org/postgis/trunk@9174 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_restore.pl.in b/utils/postgis_restore.pl.in index 1c1ee1574..5e601b28f 100755 --- a/utils/postgis_restore.pl.in +++ b/utils/postgis_restore.pl.in @@ -212,7 +212,7 @@ while( my $l = ) { $subline =~ s/\.ndims\(/.st_ndims(/; } if ( $subline =~ /CONSTRAINT enforce_srid_/i ) { - $subline =~ s/\.srid\(/.st_srid(/; + $subline =~ s/\bsrid\(/st_srid(/; if ( $subline =~ /=\s\(?([-0-9][0-9]*)\)/ ) { my $oldsrid = $1; my $newsrid = clamp_srid($oldsrid);