[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/emacsql cf16cdb2f8 217/427: Add a special characters test.
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/emacsql cf16cdb2f8 217/427: Add a special characters test. |
Date: |
Tue, 13 Dec 2022 02:59:45 -0500 (EST) |
branch: elpa/emacsql
commit cf16cdb2f89c04813caf2af8d7bc1e474e9dd4a5
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>
Add a special characters test.
---
emacsql-tests.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/emacsql-tests.el b/emacsql-tests.el
index e2e8d4841d..4172dd8ad5 100644
--- a/emacsql-tests.el
+++ b/emacsql-tests.el
@@ -254,6 +254,17 @@
(should-error (emacsql db [:create-table foo [x]])
:type 'emacsql-error))))
+(ert-deftest emacsql-special-chars ()
+ "A short test that interacts with SQLite with special characters."
+ (let ((emacsql-global-timeout 4))
+ (emacsql-with-connection (db (emacsql-sqlite nil))
+ (emacsql db [:create-table test-table [x]])
+ (emacsql db [:insert :into test-table
+ :values ([""] [\])])
+ (should (process-live-p (emacsql-process db)))
+ (should (equal (emacsql db [:select * :from test-table])
+ '(("") (\)))))))
+
(provide 'emacsql-tests)
;;; emacsql-tests.el ends here
- [nongnu] elpa/emacsql d8d4bf4b98 202/427: Add emacsql-with-transaction macro., (continued)
- [nongnu] elpa/emacsql d8d4bf4b98 202/427: Add emacsql-with-transaction macro., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql dc178532e5 203/427: Add emacsql-with-bind., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cc92c154ee 205/427: Disallow nil as an identifier., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 75c0c4aeb7 204/427: Tweak emacsql-with-bind macro., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3f38b357c3 206/427: Detect empty SQL vectors (better error messages)., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ad24b1c508 208/427: Add JOIN syntax., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql fe2eef212c 210/427: Fix header typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 89654ad76b 211/427: Add identifier note., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 543189295d 215/427: Drop the pointless autoloads., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 3127283cd1 218/427: Clean up middleware a bit., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql cf16cdb2f8 217/427: Add a special characters test.,
ELPA Syncer <=
- [nongnu] elpa/emacsql 2db4a84598 225/427: Allow os tuples to be specified as an env var., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql ba2fac7701 228/427: Update the README., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql af2cdddca1 231/427: Squash a bunch of bugs., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql d3fa5b908f 234/427: Add funcall operator., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql b29ea275d4 236/427: Tweak limitations notes., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 45ac14390a 239/427: Fix up emacsql.el header to match new syntax., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 7c774ffe12 248/427: Improve MySQL error parsing., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 89e42aed13 253/427: Add docstring to emacsql-mysql., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql 5c423307a8 254/427: Fix README typo., ELPA Syncer, 2022/12/13
- [nongnu] elpa/emacsql c5e1ccef73 257/427: Flesh out the rest of mysql-connection's constructor., ELPA Syncer, 2022/12/13