1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-05-17 10:25:56 -07:00

; Fix last change

* etc/NEWS: Announce the change in 'sqlite-close'.
* src/sqlite.c (Fsqlite_close): Fix commentary.
(Bug#80908).
This commit is contained in:
Eli Zaretskii 2026-04-27 13:47:17 +03:00
parent 09a90f0e90
commit 5cee4fa0ff
2 changed files with 3 additions and 1 deletions

View file

@ -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
+++

View file

@ -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;