]> git.eshelyaron.com Git - emacs.git/commit
Fix 'with-sqlite-transaction' when BODY fails
authorEli Zaretskii <eliz@gnu.org>
Tue, 21 Nov 2023 13:36:22 +0000 (15:36 +0200)
committerEli Zaretskii <eliz@gnu.org>
Tue, 21 Nov 2023 13:36:22 +0000 (15:36 +0200)
commitd72a4ed65ce23581ff8b3bf4340caecf31c18f43
treee29b9e83e4e9eeccfac0019eb268c8ce1d84eca1
parenta7b3c92373373f956234349fe6b792e1396e293e
Fix 'with-sqlite-transaction' when BODY fails

* lisp/sqlite.el (with-sqlite-transaction): Don't commit changes
if BODY errors out.  Roll back the transaction if committing
fails.  (Bug#67142)

* etc/NEWS:
* doc/lispref/text.texi (Database): Document the error handling in
'with-sqlite-transaction'.
doc/lispref/text.texi
etc/NEWS
lisp/sqlite.el