# HG changeset patch # User Matthew Wild # Date 1307271209 -3600 # Node ID 7ad81d81f5ec2db2bc7677af23a942f27a9df593 # Parent 50e1a3dc2b5025364b5dcc7116011b0294cf2faa mod_storage_sql: Fix commit c806a599224a for compatibility with non-MySQL databases (thanks Ognyan Kulev) diff -r 50e1a3dc2b50 -r 7ad81d81f5ec plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Sun Jun 05 11:48:57 2011 +0100 +++ b/plugins/mod_storage_sql.lua Sun Jun 05 11:53:29 2011 +0100 @@ -93,7 +93,7 @@ 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();