Re: [PostgreSQL] Unescaping escaped strings?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: [PostgreSQL] Unescaping escaped strings?

From: Iván Sánchez Ortega <i.punto.sanchez--@rroba--mirame.punto.net>
Date: Thu Jan 05 2006 - 02:08:24 CET

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Toby Inkster wrote:

>> How do one unescape strings prepared with pg_escape_string() ?
>
> StripCSlashes() might do it.

No, it does not. pg_escape_string (and analogous functions for other DB
engines) just double the single quotes there may be inside the string. They
don't add any slashes AFAIK.

- --
- ----------------------------------
Iván Sánchez Ortega -i-punto-sanchez--arroba-mirame-punto-net

Un ordenador no es un televisor ni un microondas, es una herramienta
compleja.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDvHGI3jcQ2mg3Pc8RAkK5AJ4hsCT0GbJfVDu3THFG/qcOZro/2gCffUTQ
0g6yh1Bd3jyKDvfZxWe8lDw=
=PuYe
-----END PGP SIGNATURE-----
Received on Tue Jan 17 16:52:57 2006