]> granicus.if.org Git - postgis/commitdiff
Allow fully-qualified basetype name for aggregates
authorSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 11:21:41 +0000 (11:21 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 24 Dec 2011 11:21:41 +0000 (11:21 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8559 b70326c6-7e19-0410-871a-916f4a2858ee

utils/create_undef.pl

index 2119fcf4638b088509b0bf2d47c429f945a9fceb..432876415f32f6b4b26d4c99b736eaff7a3d7ba9 100755 (executable)
@@ -161,11 +161,11 @@ foreach my $table (@tables)
 print "-- Drop all aggregates.\n";
 foreach my $agg (@aggs)
 {
-       if ( $agg =~ /create aggregate\s*([\w\.]+)\s*\(\s*.*basetype = (\w+)/ism )
+       if ( $agg =~ /create aggregate\s*([\w\.]+)\s*\(\s*.*basetype = ([\w\.]+)/ism )
        {
                print "DROP AGGREGATE $1 ($2);\n";
        }
-       elsif ( $agg =~ /create aggregate\s*([\w\.]+)\s*\(\s*([\w,\s]+)\s*\)/ism )
+       elsif ( $agg =~ /create aggregate\s*([\w\.]+)\s*\(\s*([\w,\.\s]+)\s*\)/ism )
        {
                print "DROP AGGREGATE $1 ($2);\n";
        }