diff options
author | Tom Lane | 2009-08-04 18:49:50 +0000 |
---|---|---|
committer | Tom Lane | 2009-08-04 18:49:50 +0000 |
commit | bcba09e27c0ca093b1b3fa92dee2acd0bf30efee (patch) | |
tree | d8c3d92ccac1de439631b0f5a11f4a9b64d16092 /contrib/pgcrypto/sql | |
parent | 5b8ee5c128cc90c13d909db72f93eb9674ac7aed (diff) |
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.
Diffstat (limited to 'contrib/pgcrypto/sql')
-rw-r--r-- | contrib/pgcrypto/sql/blowfish.sql | 2 | ||||
-rw-r--r-- | contrib/pgcrypto/sql/init.sql | 3 | ||||
-rw-r--r-- | contrib/pgcrypto/sql/pgp-armor.sql | 2 | ||||
-rw-r--r-- | contrib/pgcrypto/sql/pgp-encrypt.sql | 2 | ||||
-rw-r--r-- | contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql | 2 | ||||
-rw-r--r-- | contrib/pgcrypto/sql/rijndael.sql | 2 |
6 files changed, 13 insertions, 0 deletions
diff --git a/contrib/pgcrypto/sql/blowfish.sql b/contrib/pgcrypto/sql/blowfish.sql index c0383f54218..1a8536d686b 100644 --- a/contrib/pgcrypto/sql/blowfish.sql +++ b/contrib/pgcrypto/sql/blowfish.sql @@ -1,6 +1,8 @@ -- -- Blowfish cipher -- +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; -- some standard Blowfish testvalues SELECT encode(encrypt( diff --git a/contrib/pgcrypto/sql/init.sql b/contrib/pgcrypto/sql/init.sql index a58b3f0144d..ee1c231bdc2 100644 --- a/contrib/pgcrypto/sql/init.sql +++ b/contrib/pgcrypto/sql/init.sql @@ -12,6 +12,9 @@ SET client_min_messages = warning; \set ECHO all RESET client_min_messages; +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; + -- check for encoding fn's SELECT encode('foo', 'hex'); SELECT decode('666f6f', 'hex'); diff --git a/contrib/pgcrypto/sql/pgp-armor.sql b/contrib/pgcrypto/sql/pgp-armor.sql index 040c4ac038f..71ffba26a0a 100644 --- a/contrib/pgcrypto/sql/pgp-armor.sql +++ b/contrib/pgcrypto/sql/pgp-armor.sql @@ -1,6 +1,8 @@ -- -- PGP Armor -- +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; select armor(''); select armor('test'); diff --git a/contrib/pgcrypto/sql/pgp-encrypt.sql b/contrib/pgcrypto/sql/pgp-encrypt.sql index 03b34c8ad25..218bd419e5e 100644 --- a/contrib/pgcrypto/sql/pgp-encrypt.sql +++ b/contrib/pgcrypto/sql/pgp-encrypt.sql @@ -1,6 +1,8 @@ -- -- PGP encrypt -- +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; select pgp_sym_decrypt(pgp_sym_encrypt('Secret.', 'key'), 'key'); diff --git a/contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql b/contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql index 62dd487c10f..2c4e622e5c8 100644 --- a/contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql +++ b/contrib/pgcrypto/sql/pgp-pubkey-encrypt.sql @@ -1,6 +1,8 @@ -- -- PGP Public Key Encryption -- +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; -- successful encrypt/decrypt select pgp_pub_decrypt( diff --git a/contrib/pgcrypto/sql/rijndael.sql b/contrib/pgcrypto/sql/rijndael.sql index 4d6af0ffaa2..428ad1332c2 100644 --- a/contrib/pgcrypto/sql/rijndael.sql +++ b/contrib/pgcrypto/sql/rijndael.sql @@ -1,6 +1,8 @@ -- -- AES / Rijndael-128 cipher -- +-- ensure consistent test output regardless of the default bytea format +SET bytea_output TO escape; -- some standard Rijndael testvalues SELECT encode(encrypt( |