aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-06-05 11:53:29 +0100
committerMatthew Wild <mwild1@gmail.com>2011-06-05 11:53:29 +0100
commit67088429be56260de6db1a75de036da082447d54 (patch)
tree5887c7bc6d44be96e4e8036d360d674679d0ac07 /plugins
parent3df725786b93b54f681fd0baa3f004c0d961488a (diff)
downloadprosody-67088429be56260de6db1a75de036da082447d54.tar.gz
prosody-67088429be56260de6db1a75de036da082447d54.zip
mod_storage_sql: Fix commit c806a599224a for compatibility with non-MySQL databases (thanks Ognyan Kulev)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_storage_sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index 57331ac0..055d6599 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -93,7 +93,7 @@ local function create_table()
if not(ok and commit_ok) then
module:log("warn", "Failed to create index (%s), lookups may not be optimised", err or commit_err);
end
- else -- COMPAT: Upgrade tables from 0.8.0
+ elseif params.driver == "MySQL" then -- COMPAT: Upgrade tables from 0.8.0
-- Failed to create, but check existing MySQL table here
local stmt = connection:prepare("SHOW COLUMNS FROM prosody WHERE Field='value' and Type='text'");
local ok = stmt:execute();