# HG changeset patch # User Kim Alvefur # Date 1582385023 -3600 # Node ID ee6c122644206b8fed6f9809f978965ac216f7d7 # Parent 0c00274528a43c169c80535a80f42370e82eff06 mod_storage_sql: Move update limit check back one step, fixes traceback 0c00274528a4 moved it one step too far, so the check was performed before connecting to the database instead of after. diff -r 0c00274528a4 -r ee6c12264420 plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Fri Feb 21 23:00:44 2020 +0100 +++ b/plugins/mod_storage_sql.lua Sat Feb 22 16:23:43 2020 +0100 @@ -623,14 +623,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