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 });
In reply to Re^2: DBH Insert of Binary Data
by cowboy
in thread DBH Insert of Binary Data
by amt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |