]> granicus.if.org Git - postgis/commitdiff
Massaged to work with pg_dump-7.2 and pg_restore-7.2
authorSandro Santilli <strk@keybit.net>
Fri, 19 Nov 2004 17:39:33 +0000 (17:39 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 19 Nov 2004 17:39:33 +0000 (17:39 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1107 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_restore.pl

index 5b0eb32ab8431694a875767d74bf42f828ee8845..d7b75dc387c0afe0a959678942b7a53d27158e66 100644 (file)
@@ -265,8 +265,12 @@ while( my $line = <INPUT> )
        if ($line =~ / FUNCTION *([^ ]*) *\(([^)]*)\)/)
        {
                my $funcname = $1;
-               #print "FUNCNAME: [$funcname]\n";
                my @args = split(",", $2);
+
+               $funcname =~ s/^"//;
+               $funcname =~ s/"$//;
+               #print "FUNCNAME: [$funcname]\n";
+
                #print "ARGS: [".@args."]\n";
                my $wkbinvolved = 0;
                for (my $i=0; $i<@args; $i++)