# HG changeset patch # User Kim Alvefur # Date 1450181730 -3600 # Node ID 9beba2572e2baf744e39a21d2485760f52f02fe1 # Parent ddb03cc4ce04381a7a6d2fac5a035f7641fa7fd4 mod_storage_sql: Fix use of SQLite3 in-memory database (no path expansion) diff -r ddb03cc4ce04 -r 9beba2572e2b plugins/mod_storage_sql.lua --- a/plugins/mod_storage_sql.lua Sun Dec 13 21:21:09 2015 +0100 +++ b/plugins/mod_storage_sql.lua Tue Dec 15 13:15:30 2015 +0100 @@ -417,7 +417,9 @@ local function normalize_params(params) if params.driver == "SQLite3" then - params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite"); + if params.database ~= ":memory:" then + params.database = resolve_relative_path(prosody.paths.data or ".", params.database or "prosody.sqlite"); + end end assert(params.driver and params.database, "Configuration error: Both the SQL driver and the database need to be specified"); return params;