diff options
author | Kim Alvefur <zash@zash.se> | 2020-02-22 16:26:20 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-02-22 16:26:20 +0100 |
commit | 06e45373211c207473e20c94c8e0b720af6e5c8e (patch) | |
tree | ef0115ce38bf05a865fe1cc3175f4b5ca09a38e9 | |
parent | 71d08e8cab4b9b981c8655927495000aa81c5b4f (diff) | |
parent | 60a3d89260c46df3e0135c1a72b3e7b55a476be6 (diff) | |
download | prosody-06e45373211c207473e20c94c8e0b720af6e5c8e.tar.gz prosody-06e45373211c207473e20c94c8e0b720af6e5c8e.zip |
Merge 0.11->trunk
-rw-r--r-- | plugins/mod_storage_sql.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua index 36c77e9e..4a2f0d90 100644 --- a/plugins/mod_storage_sql.lua +++ b/plugins/mod_storage_sql.lua @@ -728,14 +728,14 @@ function module.load() return false, "database upgrade needed"; 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; + 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); engines[sql.db2uri(params)] = engine; end |