Rudy Lippan wrote: > On Wed, 11 Dec 2002, Bruce Momjian wrote: > > > PQescapeString is not for binary data, only for text string, escaping > > quotes and backslashes and stuff like that. The only binary one is > > PQescapeBytea(). > > Makes sense. > > What exactly is Pg's idea of binary data? Anything !in SQL_CHARACTER || > !in in LATIN1 || !in ISO8BIT (ie. what needs to be rejected other than > strings containing '\0') ?
Good question. Usually it is NULL and >0x7f for multibyte reasons. though if the client and server encodings are the same, you don't even need to do that. We are working to improve the handling so it is only NULL has to be handled. -- Bruce Momjian | http://candle.pha.pa.us [EMAIL PROTECTED] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073