]> ruin.nu Git - ND.git/commitdiff
Use new more intelligent default for pg_enable_utf8 master
authorMichael Andreen <harv@ruin.nu>
Sat, 13 Jun 2020 11:37:23 +0000 (13:37 +0200)
committerMichael Andreen <harv@ruin.nu>
Sat, 13 Jun 2020 11:37:23 +0000 (13:37 +0200)
DB.pm

diff --git a/DB.pm b/DB.pm
index 0f87ee162cc7b8bbb838cfb81f17209e2ae7fcce..522d1ff634570ede6d32d3b8b16ad289c6e50d2b 100644 (file)
--- 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});