d_i_r_t_y has asked for the wisdom of the Perl Monks concerning the following question:
Our initial experiments with them show that the latest DBD::mysql driver (version 2.0415) doesn't permit the use of transaction by virtue of the fact that the Autocommit flag insists on remaining on, which of course, obviates the concept of transaction.
what can be done to get around this though, is to use the (rather crude) do method:
$dbh->do('begin'); $dbh->do('commit'); $dbh->do('rollback');
This works, but probably isn't portable and probably isn't the 'right' way to do things. does anyone else has advice/experiences to offer?
d_i_r_t_y
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI and transactions on MySQL
by BMaximus (Chaplain) on Apr 20, 2001 at 10:15 UTC | |
|
Re: DBI and transactions on MySQL
by Mungbeans (Pilgrim) on Apr 20, 2001 at 16:19 UTC |