aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-02-22 16:26:20 +0100
committerKim Alvefur <zash@zash.se>2020-02-22 16:26:20 +0100
commit06e45373211c207473e20c94c8e0b720af6e5c8e (patch)
treeef0115ce38bf05a865fe1cc3175f4b5ca09a38e9
parent71d08e8cab4b9b981c8655927495000aa81c5b4f (diff)
parent60a3d89260c46df3e0135c1a72b3e7b55a476be6 (diff)
downloadprosody-06e45373211c207473e20c94c8e0b720af6e5c8e.tar.gz
prosody-06e45373211c207473e20c94c8e0b720af6e5c8e.zip
Merge 0.11->trunk
-rw-r--r--plugins/mod_storage_sql.lua12
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