Commit 78dd11a4 authored by Paul Ramsey's avatar Paul Ramsey

Try to drop the database before creating a new one, using a conditional drop in dropdb --if-exists


git-svn-id: http://svn.osgeo.org/postgis/trunk@17304 b70326c6-7e19-0410-871a-916f4a2858ee
parent e3d37dd4
Pipeline #50970980 passed with stage
in 24 minutes and 58 seconds
......@@ -1215,8 +1215,10 @@ sub count_db_objects
##################################################################
sub create_db
{
my $cmd = "createdb --encoding=UTF-8 --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
return system($cmd);
my $dropcmd = "dropdb --if-exists $DB > $REGRESS_LOG";
my $createcmd = "createdb --encoding=UTF-8 --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
system($dropcmd);
return system($createcmd);
}
sub create_spatial
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment