From 5cee4fa0ff4bc5dd5da2fb4063cf04fa4b39bcc0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 27 Apr 2026 13:47:17 +0300 Subject: [PATCH] ; Fix last change * etc/NEWS: Announce the change in 'sqlite-close'. * src/sqlite.c (Fsqlite_close): Fix commentary. (Bug#80908). --- etc/NEWS | 2 ++ src/sqlite.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/etc/NEWS b/etc/NEWS index abe49005af8..bfc475c5704 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -3605,6 +3605,8 @@ normal file name starts with "file:", you can disable the URI recognition by invoking 'sqlite-open' with the new optional argument DISABLE-URI non-nil. +*** 'sqlite-close' now does nothing if the connection is already closed. + ** GUD +++ diff --git a/src/sqlite.c b/src/sqlite.c index 97399339817..425a39d76dd 100644 --- a/src/sqlite.c +++ b/src/sqlite.c @@ -331,7 +331,7 @@ DEFUN ("sqlite-close", Fsqlite_close, Ssqlite_close, 1, 1, 0, (Lisp_Object db) { /* Do nothing when the connection is already closed. - This aligns with the behavior of sqlite3_close. */ + This aligns with the behavior of 'sqlite3_close' itself. */ if (SQLITE (db) && !XSQLITE (db)->db) return Qt;