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

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

[elpa] externals/pq 6f6d8728e5 38/63: Test expected error on invalid enc


From: ELPA Syncer
Subject: [elpa] externals/pq 6f6d8728e5 38/63: Test expected error on invalid encoding.
Date: Mon, 14 Feb 2022 23:24:26 -0500 (EST)

branch: externals/pq
commit 6f6d8728e540bf211b40f08c6c947f02454c4ecf
Author: Andreas Seltenreich <seltenreich@gmx.de>
Commit: Andreas Seltenreich <seltenreich@gmx.de>

    Test expected error on invalid encoding.
---
 test.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test.el b/test.el
index da12b5ba88..de387cc5a6 100644
--- a/test.el
+++ b/test.el
@@ -58,7 +58,9 @@
     (pq:query conn "select 1")
     (should-error (pq:query "select * from"))
     (should-error (pq:query conn "select * from"))
-    (should-error (pq:query conn "select $1::text"))))
+    (should-error (pq:query conn "select $1::text"))
+    (should-error (pq:query conn "select $1::text" "\x80"))
+    (should-error (pq:query conn "select text '\x80'"))))
 
 (ert-deftest pq-notice-receiver-test ()
   (let ((conn (pq:connectdb *conninfo*)))



reply via email to

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