mirror of
https://github.com/bjc/prosody.git
synced 2025-04-07 07:07:38 +03:00
mod_storage_sql: Fix use of SQLite3 in-memory database (no path expansion)
This commit is contained in:
parent
14cc4c9287
commit
275bfb45fa
1 changed files with 3 additions and 1 deletions
|
@ -417,7 +417,9 @@ end
|
|||
|
||||
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue