From d4f82e27525bd2b4d0a6a06d0b529afd91f7b8e7 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Mon, 1 Feb 2021 10:48:40 +0100 Subject: [PATCH] fixed to include the DBI->connect parameter 'dbname=postgres' in 'pgsql.pm' to avoid connection problems #310 --- lib/pgsql.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pgsql.pm b/lib/pgsql.pm index 569d219..6e39a31 100644 --- a/lib/pgsql.pm +++ b/lib/pgsql.pm @@ -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, }