aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_storage_sql.lua
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
commit132191f6ffbddd5d35fdea2508ce0015bcc1a16b (patch)
treeef0115ce38bf05a865fe1cc3175f4b5ca09a38e9 /plugins/mod_storage_sql.lua
parent0b3056c44881ef8692cdb09e520a9368b29dc601 (diff)
parent6e53a3a60161ff0bde157492ed820970a5dbe736 (diff)
downloadprosody-132191f6ffbddd5d35fdea2508ce0015bcc1a16b.tar.gz
prosody-132191f6ffbddd5d35fdea2508ce0015bcc1a16b.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_storage_sql.lua')
-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