Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 3c551eb

Browse files
committed
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
1 parent 8af917b commit 3c551eb

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

contrib/citext/expected/citext.out

-9
Original file line numberDiff line numberDiff line change
@@ -1744,15 +1744,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
17441744
t
17451745
(1 row)
17461746

1747-
SELECT md5( name ) = md5( name::text ) AS t FROM srt;
1748-
t
1749-
---
1750-
t
1751-
t
1752-
t
1753-
t
1754-
(4 rows)
1755-
17561747
-- pg_client_encoding() takes no args and returns name.
17571748
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
17581749
t

contrib/citext/expected/citext_1.out

-9
Original file line numberDiff line numberDiff line change
@@ -1744,15 +1744,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
17441744
t
17451745
(1 row)
17461746

1747-
SELECT md5( name ) = md5( name::text ) AS t FROM srt;
1748-
t
1749-
---
1750-
t
1751-
t
1752-
t
1753-
t
1754-
(4 rows)
1755-
17561747
-- pg_client_encoding() takes no args and returns name.
17571748
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
17581749
t

contrib/citext/sql/citext.sql

-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ SELECT ltrim('zzzytrim'::citext, 'xyz'::citext) = 'trim' AS t;
574574
SELECT ltrim('zzzytrim'::text, 'xyz'::citext) = 'trim' AS t;
575575
SELECT ltrim('zzzytrim'::citext, 'xyz'::text ) = 'trim' AS t;
576576

577-
SELECT md5( name ) = md5( name::text ) AS t FROM srt;
578577
-- pg_client_encoding() takes no args and returns name.
579578
SELECT quote_ident( name ) = quote_ident( name::text ) AS t FROM srt;
580579
SELECT quote_literal( name ) = quote_literal( name::text ) AS t FROM srt;

0 commit comments

Comments
 (0)