diff options
author | Kim Alvefur <zash@zash.se> | 2020-02-21 23:01:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-02-21 23:01:43 +0100 |
commit | aa6a550cebc5bc0e8d1c0e5a5174f600d37a4e3f (patch) | |
tree | a226e5f3313ea02ce1781f4ad2ed55d4d186e9d9 /plugins/mod_storage_sql.lua | |
parent | e19909198725b6c338dcb2d6714849505faafefc (diff) | |
parent | 84e0c87b7e165f58f8061ad92c73dddc100cee23 (diff) | |
download | prosody-aa6a550cebc5bc0e8d1c0e5a5174f600d37a4e3f.tar.gz prosody-aa6a550cebc5bc0e8d1c0e5a5174f600d37a4e3f.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-rw-r--r-- | plugins/mod_storage_sql.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 8172b853..36c77e9e 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -727,15 +727,15 @@ function module.load() module:log("error", "Old database format detected. Please run: prosodyctl mod_%s upgrade", module.name); return false, "database upgrade needed"; end - if engine.params.driver == "SQLite3" then - for row in engine:select("PRAGMA compile_options") do - if row[1] == "ENABLE_UPDATE_DELETE_LIMIT" then - engine._have_delete_limit = true; - end - end - end end end); + if engine.params.driver == "SQLite3" then + for row in engine:select("PRAGMA compile_options") do + if row[1] == "ENABLE_UPDATE_DELETE_LIMIT" then + engine._have_delete_limit = true; + end + end + end engines[sql.db2uri(params)] = engine; end |