# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1739703438 -3600
# Node ID 953108962cd027065738cb4ad6e88a3b10c764fc
# Parent  7205da981fc242f0e07b30fe12b468aca6d95b80# Parent  edd006093533dda2db186ef4686223c340d25924
Merge 13.0->trunk

diff -r 7205da981fc2 -r 953108962cd0 util/sql.lua
--- a/util/sql.lua	Sat Feb 15 17:13:23 2025 +0000
+++ b/util/sql.lua	Sun Feb 16 11:57:18 2025 +0100
@@ -84,7 +84,7 @@
 	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;