DataTypeSqlQuery: temporarily hardcode UTF8

This commit is contained in:
Thomas Gelf 2015-08-29 01:09:27 +02:00
parent ff80463d76
commit 38c4c06c77
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ class DataTypeSqlQuery extends DataTypeHook
{ {
if ($this->db === null) { if ($this->db === null) {
$this->db = DbConnection::fromResourceName($this->settings['resource'])->getDbAdapter(); $this->db = DbConnection::fromResourceName($this->settings['resource'])->getDbAdapter();
// TODO: should be handled by resources:
$this->db->exec("SET NAMES 'utf8'");
} }
return $this->db; return $this->db;