Skip to content

Commit bcba09e

Browse files
committed
Ooops, missed that a couple of contrib modules have calls to byteacmp.
Add bytea.h inclusions as needed. Some of the contrib regression tests need to be de-hexified, too. Per buildfarm.
1 parent 5b8ee5c commit bcba09e

20 files changed

+54
-51
lines changed

contrib/btree_gin/btree_gin.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/btree_gin/btree_gin.c,v 1.2 2009/06/11 14:48:50 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/btree_gin/btree_gin.c,v 1.3 2009/08/04 18:49:50 tgl Exp $
33
*/
44
#include "postgres.h"
55

@@ -8,6 +8,7 @@
88
#include "fmgr.h"
99
#include "access/skey.h"
1010
#include "utils/builtins.h"
11+
#include "utils/bytea.h"
1112
#include "utils/cash.h"
1213
#include "utils/date.h"
1314
#include "utils/inet.h"

contrib/btree_gin/expected/bytea.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
set enable_seqscan=off;
2+
-- ensure consistent test output regardless of the default bytea format
3+
SET bytea_output TO escape;
24
CREATE TABLE test_bytea (
35
i bytea
46
);

contrib/btree_gin/sql/bytea.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
set enable_seqscan=off;
2+
-- ensure consistent test output regardless of the default bytea format
3+
SET bytea_output TO escape;
24

35
CREATE TABLE test_bytea (
46
i bytea

contrib/btree_gist/btree_bit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bit.c,v 1.10 2009/06/11 14:48:50 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bit.c,v 1.11 2009/08/04 18:49:50 tgl Exp $
33
*/
44
#include "btree_gist.h"
55
#include "btree_utils_var.h"
6-
#include "utils/builtins.h"
6+
#include "utils/bytea.h"
77
#include "utils/varbit.h"
88

99

contrib/btree_gist/btree_bytea.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/*
2-
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bytea.c,v 1.9 2009/06/11 14:48:50 momjian Exp $
2+
* $PostgreSQL: pgsql/contrib/btree_gist/btree_bytea.c,v 1.10 2009/08/04 18:49:50 tgl Exp $
33
*/
44
#include "btree_gist.h"
55
#include "btree_utils_var.h"
6-
#include "utils/builtins.h"
6+
#include "utils/bytea.h"
77

88

99
/*

contrib/citext/expected/citext.out

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -737,18 +737,6 @@ SELECT 'f'::citext::"char" = 'f'::"char" AS t;
737737
t
738738
(1 row)
739739

740-
SELECT 'foo'::bytea::citext = 'foo' AS t;
741-
t
742-
---
743-
t
744-
(1 row)
745-
746-
SELECT 'foo'::citext::bytea = 'foo'::bytea AS t;
747-
t
748-
---
749-
t
750-
(1 row)
751-
752740
SELECT '100'::money::citext = '$100.00' AS t;
753741
t
754742
---

contrib/citext/expected/citext_1.out

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -737,18 +737,6 @@ SELECT 'f'::citext::"char" = 'f'::"char" AS t;
737737
t
738738
(1 row)
739739

740-
SELECT 'foo'::bytea::citext = 'foo' AS t;
741-
t
742-
---
743-
t
744-
(1 row)
745-
746-
SELECT 'foo'::citext::bytea = 'foo'::bytea AS t;
747-
t
748-
---
749-
t
750-
(1 row)
751-
752740
SELECT '100'::money::citext = '$100.00' AS t;
753741
t
754742
---

contrib/citext/sql/citext.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,6 @@ SELECT 'f'::citext::char = 'f'::char AS t;
226226
SELECT 'f'::"char"::citext = 'f' AS t;
227227
SELECT 'f'::citext::"char" = 'f'::"char" AS t;
228228

229-
SELECT 'foo'::bytea::citext = 'foo' AS t;
230-
SELECT 'foo'::citext::bytea = 'foo'::bytea AS t;
231-
232229
SELECT '100'::money::citext = '$100.00' AS t;
233230
SELECT '100'::citext::money = '100'::money AS t;
234231

contrib/pgcrypto/expected/blowfish.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
--
22
-- Blowfish cipher
33
--
4+
-- ensure consistent test output regardless of the default bytea format
5+
SET bytea_output TO escape;
46
-- some standard Blowfish testvalues
57
SELECT encode(encrypt(
68
decode('0000000000000000', 'hex'),

contrib/pgcrypto/expected/init.out

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
SET client_min_messages = warning;
99
\set ECHO none
1010
RESET client_min_messages;
11+
-- ensure consistent test output regardless of the default bytea format
12+
SET bytea_output TO escape;
1113
-- check for encoding fn's
1214
SELECT encode('foo', 'hex');
1315
encode

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy