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;