diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 349381525..09ab89df3 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -22,7 +22,6 @@ 7.4.20 - fix: Assets with no committed versions may be left as orphans when parent is purged - fix: Tag cloud limited was to 50 least commonly used tags - - Use UTF8 for database connection when connecting to MySQL - fix: Calendar Edit template refers to non-existant and other unneeded javascript files 7.4.19 diff --git a/lib/WebGUI/SQL.pm b/lib/WebGUI/SQL.pm index 9ca83554d..bf82d1442 100644 --- a/lib/WebGUI/SQL.pm +++ b/lib/WebGUI/SQL.pm @@ -319,13 +319,7 @@ sub connect { my $pass = shift; my $params = shift; - my $driver; - if ($dsn =~ /^dbi:(\w+):/i) { - $driver = $1; - } - my $dbh = DBI->connect($dsn,$user,$pass,{RaiseError => 0, AutoCommit => 1, - $driver eq 'mysql' ? (mysql_enable_utf8 => 1) : (), - }); + my $dbh = DBI->connect($dsn,$user,$pass,{RaiseError=>0,AutoCommit=>1 }); unless (defined $dbh) { $session->errorHandler->error("Couldn't connect to database: $dsn");