Re: PQescapeBytea is not multibyte aware

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org, Thomas Lockhart <lockhart(at)fourpalms(dot)org>
Subject: Re: PQescapeBytea is not multibyte aware
Date: 2002-04-05 18:40:52
Message-ID: 29864.1018032052@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Joe Conway <mail(at)joeconway(dot)com> writes:
> I think you're correct that in a client/database encoding mismatch
> scenario, there would be bigger problems. Thoughts on this?

This scenario is probably why Tatsuo wants PQescapeBytea to octalize
everything with the high bit set; I'm not sure there's any lesser way
out. Nonetheless, if UNKNOWN conversion introduces additional failures
then it makes sense to fix that.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2002-04-05 18:53:56 Re: timeout implementation issues
Previous Message Joe Conway 2002-04-05 18:33:32 Re: PQescapeBytea is not multibyte aware

Browse pgsql-patches by date

  From Date Subject
Next Message Ed Loehr 2002-04-05 19:05:00 Re: 7.2 fe-exec.c patch to PQescapeString()
Previous Message Joe Conway 2002-04-05 18:33:32 Re: PQescapeBytea is not multibyte aware