Posted by Ivαn Sαnchez Ortega on 09/29/04 11:36
-----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-----
[Back to original message]
|