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-10-29 15:49:32 +0300
committervipsoft <vipsoft@59fd770c-687e-43c8-a1e3-f5a4ff64c105>2009-10-29 15:49:32 +0300
commit5bf3504b664356da3aa1c9db597ddb969449acd3 (patch)
tree96d53ff540b51c168a61b10038fab553d70d74cb /plugins/ExampleFeedburner
parent2b90f220a8a75056d18e52eedae25f1cf0aa125f (diff)
Use Piwik_Exec() for DDL queries as earlier versions of mysqli can't prepare these statements.
Diffstat (limited to 'plugins/ExampleFeedburner')
-rw-r--r--plugins/ExampleFeedburner/ExampleFeedburner.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ExampleFeedburner/ExampleFeedburner.php b/plugins/ExampleFeedburner/ExampleFeedburner.php
index 8ef7c359f3..5a1458e13f 100644
--- a/plugins/ExampleFeedburner/ExampleFeedburner.php
+++ b/plugins/ExampleFeedburner/ExampleFeedburner.php
@@ -30,7 +30,7 @@ class Piwik_ExampleFeedburner extends Piwik_Plugin
function install()
{
try{
- Piwik_Query('ALTER TABLE '.Piwik::prefixTable('site'). " ADD `feedburnerName` VARCHAR( 100 ) DEFAULT NULL");
+ Piwik_Exec('ALTER TABLE '.Piwik::prefixTable('site'). " ADD `feedburnerName` VARCHAR( 100 ) DEFAULT NULL");
} catch(Zend_Db_Statement_Exception $e){
// mysql code error 1060: column already exists
// if there is another error we throw the exception, otherwise it is OK as we are simply reinstalling the plugin