[postgis-tickets] [SCM] PostGIS branch master updated. 3.3.0beta2-13-g9c39b9d98
git at osgeo.org
git at osgeo.org
Mon Jul 25 09:28:03 PDT 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PostGIS".
The branch, master has been updated
via 9c39b9d98819ec91ca825798356af4ef691753d4 (commit)
from c3a42475e2e94404b8b33c86924d32a869425748 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9c39b9d98819ec91ca825798356af4ef691753d4
Author: Sandro Santilli <strk at kbt.io>
Date: Mon Jul 25 18:27:42 2022 +0200
Fix database presence detection
Closes #5190
diff --git a/regress/run_test.pl b/regress/run_test.pl
index 46086ad86..efafb29ae 100755
--- a/regress/run_test.pl
+++ b/regress/run_test.pl
@@ -225,7 +225,13 @@ print "TMPDIR is $TMPDIR\n";
# Prepare the database
##################################################################
-my @dblist = grep(/\b$DB\b/, split(/\n/, `psql -Xl`));
+my @dblist = grep(/1/, split(/\n/, `
+psql -tAc "
+ SELECT 1 FROM pg_catalog.pg_database
+ WHERE datname = '${DB}'
+" template1
+`));
+
my $dbcount = @dblist;
if ( $dbcount == 0 )
-----------------------------------------------------------------------
Summary of changes:
regress/run_test.pl | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
hooks/post-receive
--
PostGIS
More information about the postgis-tickets
mailing list