Rudy Lippan wrote: > On Mon, 21 Oct 2002, David Wheeler wrote: > > > Date: Mon, 21 Oct 2002 12:18:17 -0700 > > From: David Wheeler <[EMAIL PROTECTED]> > > To: Bruce Momjian <[EMAIL PROTECTED]> > > Cc: [EMAIL PROTECTED] > > Subject: Re: DBD:pg outstanding patches > > > > On Monday, October 21, 2002, at 11:42 AM, Bruce Momjian wrote: > > > > 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? > > > > Lest anyone forget, He also said that PQescapeString is a fairly new > feature of postgres (7.1 || 7.2), and that by switching over we would be > cutting everone else off. > > So we will probably need to keep track of the version of postgres (compile > time &/| run time) used and call either the postgres API function or a > DBD::Pg supplied function as needed.
Yes PQescapeString was new in 7.2, released 2002-02-04. Not sure how DBD-pg calls libpq, but if PQescapeString is in libpq, you can use it, if not, you will have to roll your own. -- 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