?can be written more reliably aseval { local $dbh->{AutoCommit} = 0; }; $self->{_can_do_transactions} = $@ ? 0 : 1;$self->{_can_do_transactions} = eval { local $dbh->{AutoCommit} = 0; 1 };
In reply to Re^2: How to safely test if a database handle is capable of transactions?
by larryl
in thread How to safely test if a database handle is capable of transactions?
by larryl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |