Switch to 4 byte utf8 support

This commit is contained in:
Chris 2019-06-02 14:08:01 +01:00
parent 5dd5bd1b30
commit e0e5b134d0

View File

@ -135,7 +135,7 @@ sub run {
$self -> {"dbh"} = DBI->connect($self -> {"settings"} -> {"database"} -> {"database"}, $self -> {"dbh"} = DBI->connect($self -> {"settings"} -> {"database"} -> {"database"},
$self -> {"settings"} -> {"database"} -> {"username"}, $self -> {"settings"} -> {"database"} -> {"username"},
$self -> {"settings"} -> {"database"} -> {"password"}, $self -> {"settings"} -> {"database"} -> {"password"},
{ RaiseError => 0, AutoCommit => 1, mysql_enable_utf8 => 1 }) { RaiseError => 0, AutoCommit => 1, mysql_enable_utf8mb4 => 1 })
or $self -> {"logger"} -> die_log($self -> {"cgi"} -> remote_host(), "Application: Unable to connect to database: ".$DBI::errstr); or $self -> {"logger"} -> die_log($self -> {"cgi"} -> remote_host(), "Application: Unable to connect to database: ".$DBI::errstr);
# Pull configuration data out of the database into the settings hash # Pull configuration data out of the database into the settings hash