Then, some more detail...
If $sth->execute(…) specifies any values, it must specify them all
Bound values are sticky across multiple executions:
$sth->bind_param(1, $p1);
foreach my $p2 (@p2) {
$sth->bind_param(2, $p2);
$sth->execute;
}
The currently bound values might be retrievable using:
$dbh->{ShowParamValues} = 1; # set before prepare()
%bound_values = %{ $sth->{ParamValues} };
- Potential new DBI feature, not yet fully specified at time of writing this