Re: postgresql DB::quoteSmart
| From: | Thomas Jarosch | Date: | Mon, 29 Mar 2004 09:00:20 +0000 |
| Subject: | Re: postgresql DB::quoteSmart | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-26840@lists.php.net to get a copy of this message | ||
> > Is there a reason it shouldn't use pg_escape_string() for that?
>
> Docblock to escapeSimple() in the source code of pgsql.php says:
Sorry for being blind ;-)
> * Not using pg_escape_string() yet because it requires PostgreSQL
> * to be at version 7.2 or greater.
Well, version 7.2 was released in Feb 2002, that's over two years from now.
What about adding function_exists('pg_escape_string')?
Cheers,
Thomas