Subject: | panic when reading return value from rollback() |
According to L<DBI::DBD/"The dbd_db_commit and dbd_db_rollback
methods">, the rollback method should return TRUE or FALSE.
However in DBD::JDBC it returns nothing, or even worse, generates a
panic error message :
$dbh->begin_work;
eval {
$dbh->do('STUPID FAKE SQL');
$dbh->commit;
1;
}
or do {
my $result = eval {$dbh->rollback};
print STDERR $result;
};
generates "panic: attempt to copy freed scalar".