in reply to Re: DBH Insert of Binary Data
in thread DBH Insert of Binary Data
This is a pain in the ass, I wish postgres would just let placeholders work with binary magically like mysql does.my $sth = $dbh->prepare("INSERT INTO foo (blob) VALUES (?)"); $sth->bind_param(1, $blob_data, { pg_type => DBD::Pg::PG_BYTEA });
|
|---|