]> granicus.if.org Git - postgis/commitdiff
Fix regexp renaming srid enforcement check
authorSandro Santilli <strk@keybit.net>
Mon, 13 Feb 2012 17:47:34 +0000 (17:47 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 13 Feb 2012 17:47:34 +0000 (17:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9174 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_restore.pl.in

index 1c1ee15740102f78eeb38e27045a6ecf511091c9..5e601b28fa7ff04b43eb50129e78cd64b20d1f94 100755 (executable)
@@ -212,7 +212,7 @@ while( my $l = <INPUT> ) {
         $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);