in reply to Re: DBH Insert of Binary Data
in thread DBH Insert of Binary Data

Placeholders, are the way to go in mysql. In postgres (DBD::pg) you explicitly need to do something like:
my $sth = $dbh->prepare("INSERT INTO foo (blob) VALUES (?)"); $sth->bind_param(1, $blob_data, { pg_type => DBD::Pg::PG_BYTEA });
This is a pain in the ass, I wish postgres would just let placeholders work with binary magically like mysql does.