Re: pgcrypto: Remove explicit hex encoding/decoding from tests
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: pgcrypto: Remove explicit hex encoding/decoding from tests |
| Дата | |
| Msg-id | 2116430.1638469845@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pgcrypto: Remove explicit hex encoding/decoding from tests (Peter Eisentraut <peter.eisentraut@enterprisedb.com>) |
| Список | pgsql-hackers |
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> pgcrypto tests use encode() and decode() calls to convert to/from hex
> encoding. This was from before the hex format was available in bytea.
> Now we can remove the extra explicit encoding/decoding calls and rely on
> the default output format.
Generally +1, but I see you removed some instances of
--- ensure consistent test output regardless of the default bytea format
-SET bytea_output TO escape;
I think that the principle still applies that this should work regardless
of the installation's default bytea format, so I'd recommend putting
-- ensure consistent test output regardless of the default bytea format
SET bytea_output TO hex;
at the top of each file instead.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера