branch: elpa/emacsql
commit 39ce3b9736751fe473fcb5e0f279b2f4da301645
Author: Christopher Wellons <[email protected]>
Commit: Christopher Wellons <[email protected]>
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")