Re: PQescapeString handling of \0 - Mailing list pgsql-interfaces

From Jeroen T. Vermeulen
Subject Re: PQescapeString handling of \0
Date
Msg-id 20031003155101.GC75826@xs4all.nl
Whole thread Raw
In response to Re: PQescapeString handling of \0  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PQescapeString handling of \0
List pgsql-interfaces
On Fri, Oct 03, 2003 at 11:31:02AM -0400, Tom Lane wrote:
> 
> So essentially PQescapeString is going to become like strncpy --- stop
> at either \0 or the given count.

I've no idea whether this makes sense, but as a matter of style, shouldn't
strings containing '\0's be escaped as binary strings anyway?  And if we're
going to see multibyte encodings growing in popularity (lots of zeroes and
"high" byte values), perhaps PQescapeString should even be deprecated?


Jeroen



pgsql-interfaces by date:

Previous
From: Tom Lane
Date:
Subject: Re: PQescapeString handling of \0
Next
From: Tom Lane
Date:
Subject: Re: PQescapeString handling of \0