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