projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bab66f
)
mod_storage_sql: Fix commit c806a599224a for compatibility with non-MySQL databases...
author
Matthew Wild
<mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:29 +0000
(11:53 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Sun, 5 Jun 2011 10:53:29 +0000
(11:53 +0100)
plugins/mod_storage_sql.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_storage_sql.lua
b/plugins/mod_storage_sql.lua
index 57331ac0a7c40895bd63990c5b07f1754b963bf7..055d6599a69e63aa1a76515b797ed9ec15b38545 100644
(file)
--- 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
+ else
if 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();