On Monday, October 21, 2002, at 11:42  AM, Bruce Momjian wrote:

In that case, I suggest the attached, even more simplified patch. It
assumes that the quote character stored in $lp in the existing version
is always "'" (a safe assumption for DBD:Pg, I think, in a way it wasn't
for DBI, from whence the code for the LITERAL_PREFIX and LITERAL_SUFFIX
was copied into DBD::Pg), and therefore performs the escaping of the
three agreed-upon characters for all non-numeric data types.
A variation of this patch was applied to DBD::Pg by Jeffrey Baker and included in version 1.10 or 1.11 and later. However, Jeffrey did point out that it might in fact make more sense (and faster) to use the PQescapeString() function in C. Anyone want to volunteer a patch?

I can't speak to the other patches, though.

Regards,

David

--
David Wheeler AIM: dwTheory
[EMAIL PROTECTED] ICQ: 15726394
http://david.wheeler.net/ Yahoo!: dew7e
Jabber: [EMAIL PROTECTED]



Reply via email to