mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_storage_sql: Fix tests for SQLite3
Tests does not run the code that initializes `sqlite_version`
This commit is contained in:
parent
d6f8c4fe18
commit
c1655a181f
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ end
|
|||
local function has_upsert(engine)
|
||||
if engine.params.driver == "SQLite3" then
|
||||
-- SQLite3 >= 3.24.0
|
||||
return (engine.sqlite_version[2] or 0) >= 24;
|
||||
return engine.sqlite_version and (engine.sqlite_version[2] or 0) >= 24;
|
||||
elseif engine.params.driver == "PostgreSQL" then
|
||||
-- PostgreSQL >= 9.5
|
||||
-- Versions without support have long since reached end of life.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue