Re: Re: Quote "draft"
| From: | Tomas V.V.Cox | Date: | Sat, 14 Jul 2001 15:46:38 +0000 |
| Subject: | Re: Re: Quote "draft" | ||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-754@lists.php.net to get a copy of this message | ||
yavo wrote:
>
> > 2) Send the patch you made to the list to be included :) (I'm doing
> > something similar for the PostgreSQL extension).
>
> The change goes like
>
> in executeEmulatedQuery DB/common.php
>
> 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.
Tomas V.V.Cox