David Wheeler wrote: > On Wednesday, December 11, 2002, at 01:00 PM, Tim Bunce wrote: > > > The driver should always try to be as transparent as possible. > > The general principle is "don't mes with the users data unless > > they've specifically asked you to (cf. ChopBlanks)". > > Hrm. So what do you reckon is the most transparent way to deal with nul > bytes embedded in strings?
Because libpq is C based, and we pass the query as a C string to the backend, I can not think of a way to make nulls pass transparatenly. Seems bytea is the only good solution, where \\0 becomes NULL. -- 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