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

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

[nongnu] elpa/emacsql e9b77b4774 112/427: Add a test for CREATE TABLE.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql e9b77b4774 112/427: Add a test for CREATE TABLE.
Date: Tue, 13 Dec 2022 02:59:33 -0500 (EST)

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

    Add a test for CREATE TABLE.
---
 emacsql-tests.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/emacsql-tests.el b/emacsql-tests.el
index 8773cf9d29..2c81a4d18c 100644
--- a/emacsql-tests.el
+++ b/emacsql-tests.el
@@ -70,7 +70,9 @@
   (emacsql-tests-query [:select * :from people :where (in name $1)] '([FOO 
BAR])
                        "SELECT * FROM people WHERE name IN ('FOO', 'BAR');")
   (emacsql-tests-query [:insert-into foo :values [nil $1]] '(10.1)
-                       "INSERT INTO foo VALUES (NULL, 10.1);"))
+                       "INSERT INTO foo VALUES (NULL, 10.1);")
+  (emacsql-tests-query [:create-table (:temporary :if-not-exists x) [y]] '()
+                       "CREATE TEMPORARY TABLE IF NOT EXISTS x (y);"))
 
 (ert-deftest emacsql-system ()
   (emacsql-with-connection (db nil)



reply via email to

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