aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/pgcrypto/expected/3des.out2
-rw-r--r--contrib/pgcrypto/expected/cast5.out2
-rw-r--r--contrib/pgcrypto/expected/des.out2
-rw-r--r--contrib/pgcrypto/sql/3des.sql2
-rw-r--r--contrib/pgcrypto/sql/cast5.sql2
-rw-r--r--contrib/pgcrypto/sql/des.sql2
6 files changed, 12 insertions, 0 deletions
diff --git a/contrib/pgcrypto/expected/3des.out b/contrib/pgcrypto/expected/3des.out
index 3e6a88e8bf4..8983a73b8a9 100644
--- a/contrib/pgcrypto/expected/3des.out
+++ b/contrib/pgcrypto/expected/3des.out
@@ -1,6 +1,8 @@
--
-- 3DES cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- test vector from somewhere
SELECT encode(encrypt(
decode('80 00 00 00 00 00 00 00', 'hex'),
diff --git a/contrib/pgcrypto/expected/cast5.out b/contrib/pgcrypto/expected/cast5.out
index 4ca824e2f87..c1ecd9197f6 100644
--- a/contrib/pgcrypto/expected/cast5.out
+++ b/contrib/pgcrypto/expected/cast5.out
@@ -1,6 +1,8 @@
--
-- Cast5 cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- test vectors from RFC2144
-- 128 bit key
SELECT encode(encrypt(
diff --git a/contrib/pgcrypto/expected/des.out b/contrib/pgcrypto/expected/des.out
index 00513c4e6ac..d0fd0041cac 100644
--- a/contrib/pgcrypto/expected/des.out
+++ b/contrib/pgcrypto/expected/des.out
@@ -1,6 +1,8 @@
--
-- DES cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- no official test vectors atm
-- from blowfish.sql
SELECT encode(encrypt(
diff --git a/contrib/pgcrypto/sql/3des.sql b/contrib/pgcrypto/sql/3des.sql
index 99b936fa145..274d7d81f68 100644
--- a/contrib/pgcrypto/sql/3des.sql
+++ b/contrib/pgcrypto/sql/3des.sql
@@ -1,6 +1,8 @@
--
-- 3DES cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- test vector from somewhere
SELECT encode(encrypt(
diff --git a/contrib/pgcrypto/sql/cast5.sql b/contrib/pgcrypto/sql/cast5.sql
index 0761f34e758..599ee060fad 100644
--- a/contrib/pgcrypto/sql/cast5.sql
+++ b/contrib/pgcrypto/sql/cast5.sql
@@ -1,6 +1,8 @@
--
-- Cast5 cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- test vectors from RFC2144
diff --git a/contrib/pgcrypto/sql/des.sql b/contrib/pgcrypto/sql/des.sql
index 179bd83ba91..0b3d3392511 100644
--- a/contrib/pgcrypto/sql/des.sql
+++ b/contrib/pgcrypto/sql/des.sql
@@ -1,6 +1,8 @@
--
-- DES cipher
--
+-- ensure consistent test output regardless of the default bytea format
+SET bytea_output TO escape;
-- no official test vectors atm