I’d like to bind param types during the selectrow/selectall function calls.
Is it possible to change something like:
$sth = $dbh->prepare($sql);
$sth->bind_param(1, undef, {pg_type => DBD::Pg::PG_BYTEA});
$sth->execute($byteavalue);
To a selectrow statement:
$dbh->selectrow_arrayref( $sql, undef, $byteavalue );
The first param of
selectrow_*can be a statement handle, so you could use:Otherwise, you’ll have to create your own version of
selectrow_arrayref. The existing version is: