DataTypeSqlQuery: temporarily hardcode UTF8
This commit is contained in:
parent
ff80463d76
commit
38c4c06c77
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue