[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/pq d6e3746c80 40/63: Skip encoding test unless supporte
From: |
ELPA Syncer |
Subject: |
[elpa] externals/pq d6e3746c80 40/63: Skip encoding test unless supported by server. |
Date: |
Mon, 14 Feb 2022 23:24:26 -0500 (EST) |
branch: externals/pq
commit d6e3746c80e9978aa5b68ce774a5d105c483d05c
Author: Andreas Seltenreich <seltenreich@gmx.de>
Commit: Andreas Seltenreich <seltenreich@gmx.de>
Skip encoding test unless supported by server.
---
test.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/test.el b/test.el
index 04750028b0..7cd7809f7d 100644
--- a/test.el
+++ b/test.el
@@ -18,9 +18,11 @@
'([t nil nil 42])))
;; Multiple statements
- (should (equal (pq:query conn "select 1; select 2; select 3;") '(3)))
+ (should (equal (pq:query conn "select 1; select 2; select 3;") '(3)))))
- ;; Encoding
+(ert-deftest pq-encoding-test ()
+ (let ((conn (pq:connectdb *conninfo*)))
+ (skip-unless (equal '("UTF8") (pq:query conn "show server_encoding")))
(should (equal (pq:query conn "select length('(╯°□°)╯︵ ┻━┻')")
'(12)))
(should (equal (pq:query conn "select '(╯°□°)╯' ||$1::text" "︵ ┻━┻")
- [elpa] branch externals/pq created (now 04c91e8374), ELPA Syncer, 2022/02/14
- [elpa] externals/pq 03c4dbf3f9 04/63: Add pq:getrow., ELPA Syncer, 2022/02/14
- [elpa] externals/pq f743c450ac 09/63: Set application_name., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 8cbe2e24fc 36/63: Make test notice-receiver more robust., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 5fcaa751f2 13/63: Cleanup prototype definitions., ELPA Syncer, 2022/02/14
- [elpa] externals/pq d6e3746c80 40/63: Skip encoding test unless supported by server.,
ELPA Syncer <=
- [elpa] externals/pq 69d6fba048 06/63: Make argument to pq:connectdb optional., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 37e21db4c2 41/63: Shuffle tests, make gc test emit more info on failure., ELPA Syncer, 2022/02/14
- [elpa] externals/pq cdc04b0b61 27/63: Add missing PQclear calls, ELPA Syncer, 2022/02/14
- [elpa] externals/pq 6f6d8728e5 38/63: Test expected error on invalid encoding., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 527e544165 46/63: Improve error handling on connection failure., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 7a15153e8d 58/63: Protect against NULL SQLSTATE., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 966a05ef25 07/63: Initialize client_encoding to utf8., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 2f63308225 24/63: Use PQexec instead of PQexecParams when no parameters are specified., ELPA Syncer, 2022/02/14
- [elpa] externals/pq a70d1fe40d 37/63: Test encoding by using some high unicode codepoints., ELPA Syncer, 2022/02/14
- [elpa] externals/pq 795260553a 17/63: Use load-path in test.el, ELPA Syncer, 2022/02/14