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

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

[nongnu] elpa/emacsql 39ce3b9736 287/427: Smarter identifier identificat


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 39ce3b9736 287/427: Smarter identifier identification in expressions.
Date: Tue, 13 Dec 2022 02:59:52 -0500 (EST)

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

    Smarter identifier identification in expressions.
---
 emacsql-compiler.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/emacsql-compiler.el b/emacsql-compiler.el
index 8f0e829f10..81c55c1d8f 100644
--- a/emacsql-compiler.el
+++ b/emacsql-compiler.el
@@ -204,7 +204,9 @@ which will be combined with variable definitions."
                  (:scalar (emacsql-escape-scalar thing))
                  (:vector (emacsql-escape-vector thing))
                  (:schema (emacsql-prepare-schema thing)))
-             (if (symbolp thing)
+             (if (and (not (null thing))
+                      (not (keywordp thing))
+                      (symbolp thing))
                  (emacsql-escape-identifier thing)
                (emacsql-escape-scalar thing))))
         (prog1 (if (eq (cdr param) :schema) "(%s)" "%s")



reply via email to

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