Re: Problems with pgcrypto and special characters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Problems with pgcrypto and special characters
Дата
Msg-id 24650.1109619849@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Problems with pgcrypto and special characters  ("Markus Wollny" <Markus.Wollny@computec.de>)
Список pgsql-general
"Markus Wollny" <Markus.Wollny@computec.de> writes:
> ... I'am using the following function as workaround for a bytea-to-text-cast:

> create or replace function bytea2text(bytea) returns text as '
>  begin
>    return $1;
>  end;
>  ' language plpgsql;

That looks like your problem right there.

Possibly a binary cast (WITHOUT FUNCTION) would solve your problem,
though I doubt it will work well on bytea values containing \0.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Fast major-version upgrade (was: postgresql 8.0 advantages)
Следующее
От: bill@wadley.org
Дата:
Сообщение: Clay Shirky observation regarding MySQL