Software /
code /
prosody
Diff
plugins/mod_storage_sql.lua @ 10656:ffa9a20aca8b
Merge 0.11->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Feb 2020 16:26:20 +0100 |
parent | 10653:94f6fb21a764 |
parent | 10655:ee6c12264420 |
child | 10677:0054aec3e8c5 |
line wrap: on
line diff
--- a/plugins/mod_storage_sql.lua Fri Feb 21 23:30:47 2020 +0100 +++ b/plugins/mod_storage_sql.lua Sat Feb 22 16:26:20 2020 +0100 @@ -728,14 +728,14 @@ 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