[Piwik-svn] r182 - in trunk: config libs/Zend/Db/Adapter/Pdo modules
svnmaster at piwik.org
svnmaster at piwik.org
Fri Jan 18 00:51:38 CET 2008
Author: matt
Date: 2008-01-18 00:51:37 +0100 (Fri, 18 Jan 2008)
New Revision: 182
Modified:
trunk/config/global.ini.php
trunk/libs/Zend/Db/Adapter/Pdo/Abstract.php
trunk/modules/Piwik.php
Log:
Fixing bug http://framework.zend.com/issues/browse/ZF-1398
Modified: trunk/config/global.ini.php
===================================================================
--- trunk/config/global.ini.php 2008-01-17 23:39:40 UTC (rev 181)
+++ trunk/config/global.ini.php 2008-01-17 23:51:37 UTC (rev 182)
@@ -15,7 +15,7 @@
host = localhost
username = root
password =
-dbname = piwik_tests7
+dbname = piwik_tests
tables_prefix = piwiktests_
adapter = PDO_MYSQL
Modified: trunk/libs/Zend/Db/Adapter/Pdo/Abstract.php
===================================================================
--- trunk/libs/Zend/Db/Adapter/Pdo/Abstract.php 2008-01-17 23:39:40 UTC (rev 181)
+++ trunk/libs/Zend/Db/Adapter/Pdo/Abstract.php 2008-01-17 23:51:37 UTC (rev 182)
@@ -119,7 +119,7 @@
// set the PDO connection to perform case-folding on array keys, or not
$this->_connection->setAttribute(PDO::ATTR_CASE, $this->_caseFolding);
-
+
// always use exceptions.
$this->_connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
Modified: trunk/modules/Piwik.php
===================================================================
--- trunk/modules/Piwik.php 2008-01-17 23:39:40 UTC (rev 181)
+++ trunk/modules/Piwik.php 2008-01-17 23:51:37 UTC (rev 182)
@@ -688,6 +688,8 @@
}
$db = Zend_Db::factory($config->database->adapter, $dbInfos);
$db->getConnection();
+ // see http://framework.zend.com/issues/browse/ZF-1398
+ $db->getConnection()->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);
Zend_Db_Table::setDefaultAdapter($db);
Zend_Registry::set('db', $db);
More information about the Piwik-svn
mailing list