create tables with a default charset that honors the configured charset
authorChuck Hagenbuch <chuck@horde.org>
Tue, 23 Dec 2008 19:14:55 +0000 (14:14 -0500)
committerChuck Hagenbuch <chuck@horde.org>
Tue, 23 Dec 2008 19:14:55 +0000 (14:14 -0500)
framework/Db/lib/Horde/Db/Adapter/Mysql/TableDefinition.php

index 8c19fe2..4b608dd 100644 (file)
@@ -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();
     }