mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
This was causing some disruption in tests because "SET CHARSET" changes
conection charset to default DB charset and not to the specified 'utf8'.
This commit is contained in:
parent
ac4d156c33
commit
2c76ad371b
@ -147,7 +147,6 @@ global $HTTPSPAGEREQUIRED;
|
||||
if ($dbconnected && $CFG->unicodedb) {
|
||||
if ($db->databaseType == 'mysql') {
|
||||
$db->Execute("SET NAMES 'utf8'");
|
||||
$db->Execute("SET CHARSET 'utf8'"); /// This could be not necessary if DB is set to Unicode, but...
|
||||
} else if ($db->databaseType == 'postgres7') {
|
||||
$db->Execute("SET NAMES 'utf8'");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user