emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 57fa0e1d3e 306/427: Use just BEGIN for transaction


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 57fa0e1d3e 306/427: Use just BEGIN for transactions.
Date: Tue, 13 Dec 2022 02:59:53 -0500 (EST)

branch: elpa/emacsql
commit 57fa0e1d3e7c5edeaaaf7fd03daa32cd727424b9
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Use just BEGIN for transactions.
    
    This seems to be more portable. Is this the ANSI way? I can't figure it
    out.
---
 emacsql.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacsql.el b/emacsql.el
index 4673a3b33f..3ffabadad0 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -267,7 +267,7 @@ multiple times before the changes are committed."
            (condition-case nil
                (progn
                  (when (= 1 emacsql--transaction-level)
-                   (emacsql emacsql--connection [:begin :transaction]))
+                   (emacsql emacsql--connection [:begin]))
                  (let ((result (progn ,@body)))
                    (setf emacsql--result result)
                    (when (= 1 emacsql--transaction-level)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]