diff options
author | Eli Zaretskii <eliz@gnu.org> | 2023-11-21 15:36:22 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2023-11-21 15:36:22 +0200 |
commit | d72a4ed65ce23581ff8b3bf4340caecf31c18f43 (patch) | |
tree | e29b9e83e4e9eeccfac0019eb268c8ce1d84eca1 /test/lisp/auth-source-tests.el | |
parent | a7b3c92373373f956234349fe6b792e1396e293e (diff) | |
download | emacs-d72a4ed65ce23581ff8b3bf4340caecf31c18f43.tar.gz emacs-d72a4ed65ce23581ff8b3bf4340caecf31c18f43.tar.bz2 emacs-d72a4ed65ce23581ff8b3bf4340caecf31c18f43.zip |
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'.
Diffstat (limited to 'test/lisp/auth-source-tests.el')
0 files changed, 0 insertions, 0 deletions