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:07:16
Message-ID: 25986.1018030036@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 could take a look at this. Any guidance other than "faithfully
> preserving the contents of a C string"?

Take textin/textout, remove multibyte awareness? Actually the hard
part is to figure out which of the existing hardwired calls of textin
and textout would need to be replaced by calls to unknownin/unknownout.
I think the assumption UNKNOWN == TEXT has crept into a fair number of
places by now.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-04-05 18:21:41 Re: 16 parameter limit
Previous Message Ross J. Reedstrom 2002-04-05 17:23:26 Re: timeout implementation issues

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2002-04-05 18:21:41 Re: 16 parameter limit
Previous Message Joe Conway 2002-04-05 17:21:42 Re: PQescapeBytea is not multibyte aware