From 1c26c582d691615ce061bf1327225733619740ab Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 13 Jun 2020 13:37:23 +0200 Subject: [PATCH] Use new more intelligent default for pg_enable_utf8 --- DB.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DB.pm b/DB.pm index 0f87ee1..522d1ff 100644 --- a/DB.pm +++ b/DB.pm @@ -11,7 +11,7 @@ our @EXPORT = qw/DB/; sub DB { #Use domain sockets by default - my $dbh = DBI->connect_cached("dbi:Pg:dbname=ndawn", "ndawn", "", {AutoCommit => 0, RaiseError => 1, PrintError => 0, pg_enable_utf8 => 1}); + my $dbh = DBI->connect_cached("dbi:Pg:dbname=ndawn", "ndawn", "", {AutoCommit => 0, RaiseError => 1, PrintError => 0, pg_enable_utf8 => -1}); #Easy to also use /etc/postgresql/pg_services.conf #my $dbh = DBI->connect_cached("dbi:Pg:service=ndawn","", "", {AutoCommit => 0, RaiseError => 1, pg_enable_utf8 => 1}); -- 2.39.2