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

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

[nongnu] elpa/emacsql 1f6c06bda9 050/427: Use expr expansion in :where e


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 1f6c06bda9 050/427: Use expr expansion in :where expander.
Date: Tue, 13 Dec 2022 02:59:27 -0500 (EST)

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

    Use expr expansion in :where expander.
---
 emacsql.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/emacsql.el b/emacsql.el
index 9a0d7521f6..1c22769a2b 100644
--- a/emacsql.el
+++ b/emacsql.el
@@ -432,8 +432,7 @@ definitions for return from a `emacsql-defexpander'."
 
 (emacsql-defexpander :where (expr)
   (emacsql-with-vars "WHERE "
-    (cl-destructuring-bind (op a b) expr
-      (format "%s %s %s" (var a :auto) op (var b :auto)))))
+    (combine (emacsql--expr expr))))
 
 (emacsql-defexpander :create-table (table schema)
   (emacsql-with-vars "CREATE TABLE "



reply via email to

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