From: Chuck Hagenbuch Date: Tue, 23 Dec 2008 19:14:55 +0000 (-0500) Subject: create tables with a default charset that honors the configured charset X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=7af82c7a0168cd7d7f61d8518557576a1d3501ba;p=horde.git create tables with a default charset that honors the configured charset --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php b/framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php index 8c19fe28a..4b608dde7 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php +++ b/framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php @@ -30,7 +30,7 @@ class Horde_Db_Adapter_Mysql_TableDefinition extends Horde_Db_Adapter_Abstract_T public function end() { if (empty($this->_options['temporary'])) { - $this->_options['options'] = 'ENGINE=InnoDB DEFAULT CHARSET=utf8'; + $this->_options['options'] = 'ENGINE=InnoDB DEFAULT CHARSET=' . $this->_base->getCharset(); } return parent::end(); }