Re: Re: Quote "draft"

From: Date: Sat, 14 Jul 2001 20:47:43 +0000
Subject: Re: Re: Quote "draft"
References: 1 2 3 4 5  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-757@lists.php.net to get a copy of this message
cox@idecnet.com (Tomas V.V.Cox) wrote in news:3B50695E.5217952E@idecnet.com: > yavo wrote: >> >> line 328 >> switch(gettype($pdata)){ >> case "integer": >> $realquery .= $this->quoteString($pdata); >> break; >> default: >> $realquery .= "'" . $this->quoteString($pdata) . >> "'"; >> break; >> } >> > > I think this should be done at extension level in the quote() method. > I'll add this to mysql quote. Well, if you know it's integer, it probably doesn't need quoting, and why not then just use the new '!' placeholder? W/o extending quote or the above hack.

« previous php.pear.dev (#757) next »