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

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

[nongnu] elpa/emacsql 08ea1e6636 005/427: Wrap with single rather than d


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 08ea1e6636 005/427: Wrap with single rather than double quotes.
Date: Tue, 13 Dec 2022 02:59:22 -0500 (EST)

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

    Wrap with single rather than double quotes.
---
 emacsql.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacsql.el b/emacsql.el
index f14a12f34f..a0e9b6a1c3 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -164,7 +164,7 @@ This collection exists for cleanup purposes.")
     (if (or (string-match-p "[]-\000-\040!\"#%&'()*+,./:;<=>?@[\\^`{|}~\177]"
                             string)
             (string-match-p "^[0-9$]" string))
-        (format "\"%s\"" (replace-regexp-in-string "\"" "\"\"" string))
+        (format "'%s'" (replace-regexp-in-string "'" "''" string))
       string)))
 
 (defun emacsql--check-error (emacsql)



reply via email to

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