1 Index: Zend/Db/Adapter/Mysqli.php
2 ===================================================================
3 --- Zend/Db/Adapter/Mysqli.php (revision 11422)
4 +++ Zend/Db/Adapter/Mysqli.php (working copy)
6 require_once 'Zend/Db/Adapter/Mysqli/Exception.php';
7 throw new Zend_Db_Adapter_Mysqli_Exception(mysqli_connect_error());
10 + if(array_key_exists('charset', $this->_config)) {
11 + $this->_connection->set_charset($this->_config['charset']);
16 Index: Zend/Db/Adapter/Pdo/Mysql.php
17 ===================================================================
18 --- Zend/Db/Adapter/Pdo/Mysql.php (revision 11422)
19 +++ Zend/Db/Adapter/Pdo/Mysql.php (working copy)
22 return $this->fetchCol('SHOW TABLES');
28 + protected function _connect()
30 + if ($this->_connection) {
34 + if (array_key_exists('charset', $this->_config)) {
35 + $this->_connection->exec('SET NAMES ' . $this->_quote($this->_config['charset']));
40 * Returns the column descriptions for a table.
41 Index: Zend/Db/Adapter/Pdo/Pgsql.php
42 ===================================================================
43 --- Zend/Db/Adapter/Pdo/Pgsql.php (revision 11422)
44 +++ Zend/Db/Adapter/Pdo/Pgsql.php (working copy)
46 'NUMERIC' => Zend_Db::FLOAT_TYPE,
47 'REAL' => Zend_Db::FLOAT_TYPE
53 + protected function _connect()
55 + if ($this->_connection) {
59 + if (array_key_exists('charset', $this->_config)) {
60 + $this->_connection->exec('SET NAMES ' . $this->_quote($this->_config['charset']));
65 * Returns a list of the tables in the database.