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 | 7103e853aa7294ebf4ad4624a25d8d14122707bc (patch) | |
tree | a226e5f3313ea02ce1781f4ad2ed55d4d186e9d9 /plugins | |
parent | 9a4fe983315802ff15adea3d481718a0e4180be0 (diff) | |
parent | e1fe3bab8f8025e681829542d4eddd27c4f39dd5 (diff) | |
download | prosody-7103e853aa7294ebf4ad4624a25d8d14122707bc.tar.gz prosody-7103e853aa7294ebf4ad4624a25d8d14122707bc.zip |
Merge 0.11->trunk
Diffstat (limited to 'plugins')
-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 |