fixed to include the DBI->connect parameter 'dbname=postgres' in 'pgsql.pm' to avoid connection problems #310

This commit is contained in:
Jordi Sanfeliu 2021-02-01 10:48:40 +01:00
parent 0ad16e8a78
commit d4f82e2752
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ sub pgsql_update {
my $pass = $pgsql->{desc}->{$pg}->{password} || "";
my $dbh;
$dbh = DBI->connect(
"DBI:Pg:host=$host;port=$port",
"DBI:Pg:host=$host;port=$port;dbname=postgres",
$user,
$pass,
{ PrintError => $print_error, }