Re: PQescapeBytea v 7.2.3 BUG?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Reid Thompson <reid(dot)thompson(at)ateb(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQescapeBytea v 7.2.3 BUG?
Date: 2002-11-11 16:43:18
Message-ID: 3DCFDE26.3040705@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Reid Thompson wrote:
> should
[...snip...]
> result in the following output?
>
> char[0] is [\]
> char[1] is [\]
> char[2] is [\]
> char[3] is [\]
> esclen is [5]
> buffer2Ptr is [\\\\]
>
> OR should it result in
> char[0] is [\]
> char[1] is [\]
> esclen is [3]
> buffer2Ptr is [\\]

It should result in the former:

test=# select '\\\\'::bytea as string, length('\\\\'::bytea) as length;
string | length
--------+--------
\\ | 1
(1 row)

HTH,

Joe

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-11-11 16:56:35 Re: Implicit coercions, choosing types for constants, etc (yet again)
Previous Message Bruce Momjian 2002-11-11 16:40:02 Re: MemSet inline for newNode