aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2025-02-16 11:57:18 +0100
committerKim Alvefur <zash@zash.se>2025-02-16 11:57:18 +0100
commit5c2dbef89da68a8a8312a399649429cad721f6cb (patch)
treeef5a779b87d12a8c957c5f82d6f6e5483fa3bb63
parent1b8170a1d26f390fe63ee15ef12b7e5fb63ba693 (diff)
parent037c70246dc7715c896e00b3d177d61499c9d7ee (diff)
downloadprosody-5c2dbef89da68a8a8312a399649429cad721f6cb.tar.gz
prosody-5c2dbef89da68a8a8312a399649429cad721f6cb.zip
Merge 13.0->trunk
-rw-r--r--util/sql.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/sql.lua b/util/sql.lua
index 2f0ec493..06550455 100644
--- a/util/sql.lua
+++ b/util/sql.lua
@@ -84,7 +84,7 @@ function engine:connect()
dbh:autocommit(false); -- don't commit automatically
self.conn = dbh;
self.prepared = {};
- if params.password then
+ if params.driver == "SQLite3" and params.password then
local ok, err = self:execute(("PRAGMA key='%s'"):format(dbh:quote(params.password)));
if not ok then
return ok, err;