Fixes ORDER BY consistency, probably also with the loader tests
already tweaked to workaround this
See #3444
git-svn-id: http://svn.osgeo.org/postgis/trunk@14657
b70326c6-7e19-0410-871a-
916f4a2858ee
##################################################################
# Create the spatial database
##################################################################
+sub create_db
+{
+ my $cmd = "createdb --encoding=UTF-8 --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
+ return system($cmd);
+}
+
sub create_spatial
{
my ($cmd, $rv);
print "Creating database '$DB' \n";
- $cmd = "createdb --encoding=UTF-8 --template=template0 --lc-collate=C $DB > $REGRESS_LOG";
- $rv = system($cmd);
+ $rv = create_db();
+
$cmd = "createlang plpgsql $DB >> $REGRESS_LOG 2>&1";
$rv = system($cmd);
die;
}
- $rv = system("createdb ${DB} >> $REGRESS_LOG 2>&1");
+ $rv = create_db();
if ( $rv ) {
fail("Could not create ${DB}", $REGRESS_LOG);
die;