Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-09-18 03:29:27 +0400
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-09-18 03:29:27 +0400
commitef2bad7abcac18b412ed5d0cd340b5691b22f58f (patch)
tree471116a26dd71c2a0208dddb94e6fc2931f73318 /plugins/Dashboard
parent7edcbcc262c3a43a7bcfc104670d50c8607b41fb (diff)
fixes #904 - MySQL error codes; unsupported adapters can map these to driver-specific SQLSTATE (see example)
fixes #980 - Piwik Installation support for "MySQL Improved" (mysqli) extension fixes #984 - Set client connection charset to utf8. Fixed tracker profiling data not recorded until after report generated. More refactoring and database abstraction: - Installation gets a list of adapters instead of hardcoding in the plugin - checking for database-specific system requirements deferred to the adapter - error detection moved to adapter but we still use MySQL error codes rather than defining new constants Note: unit tests don't run with MYSQLI -- Zend Framework's Mysqli adapater doesn't support prepare() yet
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r--plugins/Dashboard/Dashboard.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/Dashboard/Dashboard.php b/plugins/Dashboard/Dashboard.php
index 3f31bd21ac..310e26274c 100644
--- a/plugins/Dashboard/Dashboard.php
+++ b/plugins/Dashboard/Dashboard.php
@@ -63,11 +63,7 @@ class Piwik_Dashboard extends Piwik_Plugin
} catch(Zend_Db_Statement_Exception $e){
// mysql code error 1050:table already exists
// see bug #153 http://dev.piwik.org/trac/ticket/153
- if(preg_match('/1050/', $e->getMessage()))
- {
- return;
- }
- else
+ if(!Zend_Registry::get('db')->isErrNo('1050'))
{
throw $e;
}