From 9754dd35b577f5419d2800a49a15b19a410602bd Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Wed, 14 Nov 2007 18:04:52 +0100 Subject: [PATCH] BUGFIX to handle correctly db_driver eq mysql Signed-off-by: Joshua Ferraro --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 7efeb0652a..4be0395265 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -590,7 +590,7 @@ sub _new_dbh my $db_passwd = $context->config("pass"); my $dbh= DBI->connect("DBI:$db_driver:dbname=$db_name;host=$db_host;port=$db_port", $db_user, $db_passwd); - if ( $db_name eq 'mysql' ) { + if ( $db_driver eq 'mysql' ) { # Koha 3.0 is utf-8, so force utf8 communication between mySQL and koha, whatever the mysql default config. # this is better than modifying my.cnf (and forcing all communications to be in utf8) $dbh->do("set NAMES 'utf8'") if ($dbh); -- 2.39.5