in reply to postgresql bytea escaping
How about just using the C API (via DBD::Pg) provided by pg? So:
$quoted_data = $dbh->quote($data, PG_BYTEA)
In Section
Seekers of Perl Wisdom
in reply to postgresql bytea escaping
How about just using the C API (via DBD::Pg) provided by pg? So:
$quoted_data = $dbh->quote($data, PG_BYTEA)