Re: Problems with pgcrypto and special characters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Markus Wollny" <Markus(dot)Wollny(at)computec(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Problems with pgcrypto and special characters
Date: 2005-02-28 19:44:09
Message-ID: 24650.1109619849@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Markus Wollny" <Markus(dot)Wollny(at)computec(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message bill 2005-02-28 19:46:16 Clay Shirky observation regarding MySQL
Previous Message Jim C. Nasby 2005-02-28 19:36:59 Fast major-version upgrade (was: [GENERAL] postgresql 8.0 advantages)