We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 068f6801 authored by Evan Prodromou's avatar Evan Prodromou

Revert "run 'set names' after each connection to deal with UTF8 correctly"

This reverts commit 84072aa5.

This commit caused grievous harm to old notices on identi.ca.
Reverting until we figure out how to convert the old notices.
parent 84072aa5
......@@ -227,20 +227,4 @@ class Memcached_DataObject extends DB_DataObject
$c->set($ckey, $cached, MEMCACHE_COMPRESSED, $expiry);
return new ArrayWrapper($cached);
// We overload so that 'SET NAMES "utf8"' is called for
// each connection
function _connect()
$exists = !empty($this->_database_dsn_md5) &&
$result = parent::_connect();
if (!$exists) {
$DB = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5];
$DB->query('SET NAMES "utf8"');
return $result;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment