Backslah in encrypt function.

From: Nalin Bakshi <nbakshi(at)bisil(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Backslah in encrypt function.
Date: 2007-07-25 12:32:10
Message-ID: 46A742CA.2050609@bisil.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I have come on a problem regarding encryption. I am firing a simple
select statement:

select encrypt('\\','abcd','bf');

I want to use \ for encryption but I get the error:
"invalid input syntax for type bytea"

I tried using \\\\ to encrypt \ , but on decryption I get \\ instead of
\ (single backslash).

Could someone guide me regarding this,

Thanks in advance,
Nalin Bakshi.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Simon Riggs 2007-07-25 12:43:40 Re: a few questions (and doubts) about xid
Previous Message longlong 2007-07-25 11:04:19 postgresql insert and dataset(c#)