-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
 
> $sth->execute("Hello There\\");
>
> The error message is:
> DBD::Pg::st execute failed: ERROR:  invalid input syntax for type bytea
>
> Is this going to be possible to fix in the DBD driver without using
> bind_param?
 
Hmmm..what exactly is broken in the above? This is PostgreSQL, not DBI or
DBD::Pg, that is complaining: it expects an octal number if you give it
a backslash. If you really want to add a backslash in there, try using four,
which escapes to two backslashes, which then maps to a single backslash:
 
$sth->execute("Hello There\\\\");
 
- --
Greg Sabino Mullane [EMAIL PROTECTED]
PGP Key: 0x14964AC8 200501011100
http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
 
-----BEGIN PGP SIGNATURE-----
 
iD8DBQFB1slKvJuQZxSWSsgRAmtjAKCB8HwodRHM4nHcuOptQJ5hhAJ9qACffwkW
U+tFIO+T+tOuVpiot+rEzac=
=KVOW
-----END PGP SIGNATURE-----


Reply via email to