summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2023-11-07 06:58:14 +0000
committerPeter Eisentraut2023-11-07 06:58:14 +0000
commit3c551ebede46194237f82062b54b92e474b5c743 (patch)
tree890f41cde184eac950487e4a7ba0f2a9d2d708fa
parent8af917be6badf0b50759fd7d9ca4e3e7977dd486 (diff)
citext: Allow tests to pass in OpenSSL FIPS mode
citext doesn't define an md5() function, so the value of using it in its tests is dubious. At best this shows in an indirect way that the cast from citext to text works. Avoid the issue and remove the test. Discussion: https://www.postgresql.org/message-id/flat/dbbd927f-ef1f-c9a1-4ec6-c759778ac852%40enterprisedb.com
-rw-r--r--contrib/citext/expected/citext.out9
-rw-r--r--contrib/citext/expected/citext_1.out9
-rw-r--r--contrib/citext/sql/citext.sql1
3 files changed, 0 insertions, 19 deletions
diff --git a/contrib/citext/expected/citext.out b/contrib/citext/expected/citext.out
index 1c555981363..8c0bf54f0f3 100644
--- a/contrib/citext/expected/citext.out
+++ b/contrib/citext/expected/citext.out
@@ -1744,15 +1744,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
t
(1 row)
-SELECT md5( name ) = md5( name::text ) AS t FROM srt;
- t
----
- t
- t
- t
- t
-(4 rows)
-
-- pg_client_encoding() takes no args and returns name.
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
t
diff --git a/contrib/citext/expected/citext_1.out b/contrib/citext/expected/citext_1.out
index 4a979d7a0d9..c5e5f180f2b 100644
--- a/contrib/citext/expected/citext_1.out
+++ b/contrib/citext/expected/citext_1.out
@@ -1744,15 +1744,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
t
(1 row)
-SELECT md5( name ) = md5( name::text ) AS t FROM srt;
- t
----
- t
- t
- t
- t
-(4 rows)
-
-- pg_client_encoding() takes no args and returns name.
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
t
diff --git a/contrib/citext/sql/citext.sql b/contrib/citext/sql/citext.sql
index b329253d379..aa1cf9abd5c 100644
--- a/contrib/citext/sql/citext.sql
+++ b/contrib/citext/sql/citext.sql
@@ -574,7 +574,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::citext) = 'trim' AS t;
SELECT ltrim('zzzytrim'::text, 'xyz'::citext) = 'trim' AS t;
SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
-SELECT md5( name ) = md5( name::text ) AS t FROM srt;
-- pg_client_encoding() takes no args and returns name.
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
SELECT quote_literal( name ) = quote_literal( name::text ) AS t FROM srt;