Re: pg_escape_literal(), pg_escape_identifier() patch
| From: | Daniel Convissor | Date: | Tue, 22 Nov 2011 18:51:17 +0000 |
| Subject: | Re: pg_escape_literal(), pg_escape_identifier() patch | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-56467@lists.php.net to get a copy of this message | ||
Hi Yasuo:
> I've posted pgsql patch that adds
> pg_escape_literal()/pg_escape_identifier()
pg_escape_identifier() sounds good.
Regarding pg_escape_literal(), which implements PQescapeLiteral, it is
very similar to PHP's pg_esacpe_string(), implementing
PQescapeStringConn. What is the benefit of adding this new function?
(For those wanting more info, see:
http://developer.postgresql.org/pgdocs/postgres/libpq-exec.html
)
Thanks,
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409